mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-01-18 16:26:26 +01:00
replace this
This commit is contained in:
parent
7311bd0e2d
commit
d094cf1673
@ -222,11 +222,11 @@ public class HarbleAPI {
|
||||
return revision;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
public String getPath() {
|
||||
if (success) {
|
||||
return fullPath;
|
||||
}
|
||||
return "null";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ public class Extensions extends SubForm {
|
||||
.appendString(getHConnection().getDomain())
|
||||
.appendInt(getHConnection().getPort())
|
||||
.appendString(getHConnection().getHotelVersion())
|
||||
.appendString(HarbleAPIFetcher.HARBLEAPI + "") // automatic .toString() and no additional nullpointerexception
|
||||
.appendString(HarbleAPIFetcher.HARBLEAPI == null ? "null" : HarbleAPIFetcher.HARBLEAPI.getPath())
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -295,7 +295,7 @@ public class Extensions extends SubForm {
|
||||
.appendString(getHConnection().getDomain())
|
||||
.appendInt(getHConnection().getPort())
|
||||
.appendString(getHConnection().getHotelVersion())
|
||||
.appendString(HarbleAPIFetcher.HARBLEAPI + "")
|
||||
.appendString(HarbleAPIFetcher.HARBLEAPI == null ? "null" : HarbleAPIFetcher.HARBLEAPI.getPath())
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user