mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fix NPE for null arg
This commit is contained in:
		@@ -670,7 +670,7 @@ public enum C {
 | 
				
			|||||||
        Map<String, String> map = new LinkedHashMap<>();
 | 
					        Map<String, String> map = new LinkedHashMap<>();
 | 
				
			||||||
        if (args.length > 0) {
 | 
					        if (args.length > 0) {
 | 
				
			||||||
            for (int i = args.length - 1; i >= 0; i--) {
 | 
					            for (int i = args.length - 1; i >= 0; i--) {
 | 
				
			||||||
                String arg = args[i].toString();
 | 
					                String arg = "" + args[i];
 | 
				
			||||||
                if (arg == null || arg.isEmpty()) {
 | 
					                if (arg == null || arg.isEmpty()) {
 | 
				
			||||||
                    map.put("%s" + i, "");
 | 
					                    map.put("%s" + i, "");
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user