mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-23 18:55:22 +01:00
Null check the locations.yml Map before changing into a CaseInsensitiveMap (Fixes #920)
This commit is contained in:
parent
2a7ad3c2b2
commit
5beafed279
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user