mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Fix NPE resulting from using /mcremove command on a Flatfile DB. Fixes
#509.
This commit is contained in:
		@@ -73,7 +73,7 @@ public class McremoveCommand implements CommandExecutor {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        database.profileCleanup(playerName);
 | 
					        Database.profileCleanup(playerName);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -465,7 +465,7 @@ public class Database {
 | 
				
			|||||||
        System.out.println("VendorError: " + ex.getErrorCode());
 | 
					        System.out.println("VendorError: " + ex.getErrorCode());
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public void profileCleanup(String playerName) {
 | 
					    public static void profileCleanup(String playerName) {
 | 
				
			||||||
        McMMOPlayer mcmmoPlayer = Users.getPlayer(playerName);
 | 
					        McMMOPlayer mcmmoPlayer = Users.getPlayer(playerName);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (mcmmoPlayer != null) {
 | 
					        if (mcmmoPlayer != null) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user