Skip to content

Commit

Permalink
Fix potential NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed Jan 6, 2025
1 parent f5f1a99 commit 3f71381
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/fabricmc/mappingio/tree/MappingTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ default void propagateOuterClassNames(String srcNamespace, Collection<String> ds
if (dstNsId == srcNsId) continue;

String srcName = cls.getName(srcNsId);
if (srcName == null) continue;
String dstName = cls.getName(dstNsId);

int idx = srcName.lastIndexOf('$');
Expand Down

0 comments on commit 3f71381

Please sign in to comment.