Skip to content

Commit f84ad7d

Browse files
committed
Fix NPE in TSS.getIOSVersions(...)
1 parent a9c8102 commit f84ad7d

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/airsquared/blobsaver/app

1 file changed

+1
-1
lines changed

src/main/java/airsquared/blobsaver/app/TSS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ private List<Utils.IOSVersion> getIOSVersions() throws TSSException {
303303
Stream<Utils.IOSVersion> signedBetas = getSignedBetas(deviceIdentifier);
304304
return Stream.concat(signedFirmwares, signedBetas).toList();
305305
} catch (Exception e) {
306-
if (e.getMessage().startsWith("HTTP Response was (GET https://www.betahub.cn/api/")) {
306+
if (e.getMessage() != null && e.getMessage().startsWith("HTTP Response was (GET https://www.betahub.cn/api/")) {
307307
throw new TSSException("There was an error retrieving beta versions; try disabling 'Include Betas'.\n\nThis is a known issue. See issue #614 on GitHub for more information or if you can help.", false, e);
308308
}
309309
throw new TSSException("There was an error retrieving beta versions; try disabling 'Include Betas'. For more information, try again with the debug log open.", false, e);

0 commit comments

Comments
 (0)