mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 11:49:14 +00:00
#773 Fix NPE in StackUtils.parseStackString
This commit is contained in:
1 parent
43906e058d
commit
70a04e99ce
1 file changed
+4
@@ -544,6 +544,10 @@ public class StackUtils {
|
||||
}
|
||||
|
||||
public static Stack parseStackString(String stackString, int missingMetaValue) {
|
||||
if (stackString == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
stackString = stackString.trim();
|
||||
if (stackString.isEmpty()) {
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user