Skip to content

Commit

Permalink
Added null check to isDarkTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Hablutzel committed May 23, 2023
1 parent 48fe772 commit ad9887b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/jthemedetecor/MacOSThemeDetector.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public boolean isDark() {
}

private boolean isDarkTheme(String themeName) {
return themeNamePattern.matcher(themeName).matches();
return themeName != null && themeNamePattern.matcher(themeName).matches();
}

@Override
Expand Down

0 comments on commit ad9887b

Please sign in to comment.