Skip to content

Commit

Permalink
Merge pull request #30 from bobhablutzel/master
Browse files Browse the repository at this point in the history
Added null check to isDarkTheme
  • Loading branch information
Dansoftowner authored May 23, 2023
2 parents 48fe772 + ad9887b commit 5b7ed70
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 5b7ed70

Please sign in to comment.