replace this

This commit is contained in:
sirjonasxx 2019-01-29 23:17:35 +01:00
parent 7311bd0e2d
commit d094cf1673
2 changed files with 4 additions and 4 deletions

View File

@ -222,11 +222,11 @@ public class HarbleAPI {
return revision; return revision;
} }
@Override public String getPath() {
public String toString() {
if (success) { if (success) {
return fullPath; return fullPath;
} }
return "null"; return "null";
} }
} }

View File

@ -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 + "") // 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()) .appendString(getHConnection().getDomain())
.appendInt(getHConnection().getPort()) .appendInt(getHConnection().getPort())
.appendString(getHConnection().getHotelVersion()) .appendString(getHConnection().getHotelVersion())
.appendString(HarbleAPIFetcher.HARBLEAPI + "") .appendString(HarbleAPIFetcher.HARBLEAPI == null ? "null" : HarbleAPIFetcher.HARBLEAPI.getPath())
); );
} }