Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Nov 14, 2023
1 parent ea4e0ec commit e9cb586
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ public ClassNode doEdit(String name, ClassNode node) {
}

private static String getPlatformClass(@Nullable String platformPackage, String lookupClass) {
String platform = MoreObjects.firstNonNull(platformPackage, System.getProperty(BuiltinProperties.PLATFORM_PACKAGE));
String platform = platformPackage;
if (platform == null) {
platform = System.getProperty(BuiltinProperties.PLATFORM_PACKAGE);
}
if (platform == null) {
platform = System.getProperty(BuiltinProperties.PLATFORM_NAME);
Preconditions.checkNotNull(platform, BuiltinProperties.PLATFORM_NAME + " is not present!");
Expand Down

0 comments on commit e9cb586

Please sign in to comment.