Skip to content

Commit

Permalink
Fix possible NPE in MappingIoConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Feb 15, 2024
1 parent dac8d60 commit aaeff9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ subprojects {
}

group = 'cuchaz'
version = '2.4.0'
version = '2.4.1'

version = version + (System.getenv("GITHUB_ACTIONS") ? "" : "+local")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ private static void writeClass(EntryTreeNode<EntryMapping> classNode, EntryMap<E
Deque<String> parts = new LinkedList<>();

newMappingTree.visitClass(classEntry.getFullName());
newMappingTree.visitComment(MappedElementKind.CLASS, mapping.javadoc());

if (mapping != null) {
newMappingTree.visitComment(MappedElementKind.CLASS, mapping.javadoc());
}

do {
mapping = oldMappingTree.get(classEntry);
Expand Down

0 comments on commit aaeff9a

Please sign in to comment.