mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Fix NPE when rendering missing mod screen with version bound requirements. #3501
(cherry picked from commit c1e832bff0)
This commit is contained in:
1 parent
62cc9f2e63
commit
a4983be979
1 file changed
+1
-2
@@ -21,7 +21,6 @@ package net.minecraftforge.fml.common.versioning;
|
||||
|
||||
public class DefaultArtifactVersion implements ArtifactVersion
|
||||
{
|
||||
|
||||
private ComparableVersion comparableVersion;
|
||||
private String label;
|
||||
private boolean unbounded;
|
||||
@@ -71,7 +70,7 @@ public class DefaultArtifactVersion implements ArtifactVersion
|
||||
@Override
|
||||
public boolean containsVersion(ArtifactVersion source)
|
||||
{
|
||||
if (!source.getLabel().equals(getLabel()))
|
||||
if (source.getLabel() != null && !source.getLabel().equals(getLabel()))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user