We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a4f639 commit 2f9659eCopy full SHA for 2f9659e
1 file changed
Essentials/src/main/java/com/earth2me/essentials/Warps.java
@@ -121,7 +121,7 @@ public void removeWarp(final String name) throws Exception {
121
public final void reloadConfig() {
122
warpPoints.clear();
123
final File[] listOfFiles = warpsFolder.listFiles();
124
- if (listOfFiles.length >= 1) {
+ if (listOfFiles != null) {
125
for (final File listOfFile : listOfFiles) {
126
final String filename = listOfFile.getName();
127
if (listOfFile.isFile() && filename.endsWith(".yml")) {
0 commit comments