Null check the locations.yml Map before changing into a CaseInsensitiveMap (Fixes #920)
This commit is contained in:
		| @@ -35,7 +35,11 @@ public class YamlReconnectHandler extends AbstractReconnectHandler | ||||
|             file.createNewFile(); | ||||
|             try ( FileReader rd = new FileReader( file ) ) | ||||
|             { | ||||
|                 data = new CaseInsensitiveMap<>( yaml.loadAs( rd, Map.class ) ); | ||||
|                 Map map = yaml.loadAs( rd, Map.class ); | ||||
|                 if ( map != null ) | ||||
|                 { | ||||
|                     data = new CaseInsensitiveMap<>( map ); | ||||
|                 } | ||||
|             } | ||||
|         } catch ( YAMLException ex ) | ||||
|         { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Thinkofdeath
					Thinkofdeath