mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 08:50:52 +01:00
remove nullpointer when harble api not uptodate
This commit is contained in:
parent
75e92d4a3b
commit
459f07e126
@ -198,6 +198,6 @@ public class HarbleAPI {
|
|||||||
if (Cacher.cacheFileExists(cachedMessagesPath)) {
|
if (Cacher.cacheFileExists(cachedMessagesPath)) {
|
||||||
return Cacher.getCacheDir() + File.separator + cachedMessagesPath;
|
return Cacher.getCacheDir() + File.separator + cachedMessagesPath;
|
||||||
}
|
}
|
||||||
return super.toString();
|
return "null";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -158,7 +158,7 @@ public class Extensions extends SubForm {
|
|||||||
.appendString(getHConnection().getDomain())
|
.appendString(getHConnection().getDomain())
|
||||||
.appendInt(getHConnection().getPort())
|
.appendInt(getHConnection().getPort())
|
||||||
.appendString(getHConnection().getHotelVersion())
|
.appendString(getHConnection().getHotelVersion())
|
||||||
.appendString(HarbleAPIFetcher.HARBLEAPI.toString())
|
.appendString(HarbleAPIFetcher.HARBLEAPI + "") // automatic .toString() and no additional nullpointerexception
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -295,7 +295,7 @@ public class Extensions extends SubForm {
|
|||||||
.appendString(getHConnection().getDomain())
|
.appendString(getHConnection().getDomain())
|
||||||
.appendInt(getHConnection().getPort())
|
.appendInt(getHConnection().getPort())
|
||||||
.appendString(getHConnection().getHotelVersion())
|
.appendString(getHConnection().getHotelVersion())
|
||||||
.appendString(HarbleAPIFetcher.HARBLEAPI.toString())
|
.appendString(HarbleAPIFetcher.HARBLEAPI + "")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user