Skip to content

Commit 6263463

Browse files
avoid NPE (even though os.name should always be defined on any JVM)
1 parent 998423b commit 6263463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/cryptomator/integrations/common/OperatingSystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ enum Value {
3030
WINDOWS,
3131
UNKNOWN;
3232

33-
private static final String OS_NAME = System.getProperty("os.name").toLowerCase();
33+
private static final String OS_NAME = System.getProperty("os.name", "").toLowerCase();
3434

3535
public static Value current() {
3636
if (OS_NAME.contains("linux")) {

0 commit comments

Comments
 (0)