NullPointerException when module.txt contains an extra trailing comma #133
Labels
Category: Crash
Requests, Issues and Changes targeting unexpected terminations, segfaults, etc.
Good First Issue
Good for learners that are new to Terasology
Size: S
Small effort likely only affecting a single area and requiring little to no research
Topic: Stabilization
Requests, Issues and Changes related to improving stablity and reducing flakyness
Type: Bug
Issues reporting and PRs fixing problems
Milestone
gestalt/gestalt-module/src/main/java/org/terasology/gestalt/module/dependencyresolution/ResolutionAttempt.java
Lines 86 to 91 in d97b8f7
Apparently
ModuleMetadata.getDependencies
can return a list with anull
element when module.txt contains an extra trailing comma, as in the example below.Could catch the null here, but probably better to fix it so that list can't contain null elements at all, even if the JSON is invalid.
[example module.txt]
module.txt:
The text was updated successfully, but these errors were encountered: