Update NativeUtils.java
This commit is contained in:
parent
66c5597dce
commit
579027bf19
|
@ -24,7 +24,7 @@ public final class NativeUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] parts = path.split("/");
|
String[] parts = path.split("/");
|
||||||
String filename = parts.length > 1 ? parts[parts.length - 1] : null;
|
String filename = (parts.length > 1) ? parts[parts.length - 1] : null;
|
||||||
|
|
||||||
if (filename == null || filename.length() < MIN_PREFIX_LENGTH) {
|
if (filename == null || filename.length() < MIN_PREFIX_LENGTH) {
|
||||||
throw new IllegalArgumentException("The filename has to be at least 3 characters long.");
|
throw new IllegalArgumentException("The filename has to be at least 3 characters long.");
|
||||||
|
|
Loading…
Reference in New Issue