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;
}
@Override
public String toString() {
public String getPath() {
if (success) {
return fullPath;
}
return "null";
}
}

View File

@ -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())
);
}