Skip to content

Commit

Permalink
Fix NPE seen in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Jan 14, 2025
1 parent 493bedf commit aaaa0c0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,9 @@ public IApiComponent getApiComponent(String id, Version version) {
}

private static boolean hasSameMMMVersion(Version ref, IApiComponent component) {
if (component == null || ref == null) {
return false;
}
Version v = new Version(component.getVersion());
return ref.getMajor() == v.getMajor() && ref.getMinor() == v.getMinor() && ref.getMicro() == v.getMicro();
}
Expand Down

0 comments on commit aaaa0c0

Please sign in to comment.