mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-27 06:20:02 +00:00
Warn instead of NPE on open non-existing
When opening non-existing packs a NPE is raised, this should resolve that.
This commit is contained in:
1 parent
2f29953ccb
commit
1365d442e9
1 file changed
+4
@@ -57,6 +57,10 @@ public class IrisProject
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (d.getLoader() == null){
|
||||||
|
sender.sendMessage("That pack does not exist");
|
||||||
|
return;
|
||||||
|
}
|
||||||
File f = d.getLoader().getDataFolder();
|
File f = d.getLoader().getDataFolder();
|
||||||
boolean foundWork = false;
|
boolean foundWork = false;
|
||||||
for(File i : f.listFiles())
|
for(File i : f.listFiles())
|
||||||
|
|||||||
Reference in new issue
Block a user