Null check
This commit is contained in:
parent
72e61af22b
commit
b25471eeaf
@ -18,6 +18,10 @@ public class MassiveCoreTaskDeleteFiles implements Runnable
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
// Some people got null pointers
|
||||
if (MassiveCoreMConf.get() == null) throw new NullPointerException("mconf");
|
||||
if (MassiveCoreMConf.get().deleteFiles == null) throw new NullPointerException("deleteFiles");
|
||||
|
||||
for (String deleteFile : MassiveCoreMConf.get().deleteFiles)
|
||||
{
|
||||
File file = new File(deleteFile);
|
||||
|
Loading…
Reference in New Issue
Block a user