Skip to content

Commit c7126e2

Browse files
committed
use isEmpty instead of isBlank
1 parent cacf71d commit c7126e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/GlfwJoystickInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public GlfwJoystickInput(AppSettings settings) {
7373
this.settings = settings;
7474
try {
7575
String path = settings.getSDLGameControllerDBResourcePath();
76-
if (!path.isBlank()) {
76+
if (path != null && !path.trim().isEmpty()) {
7777
ByteBuffer bbf = SdlGameControllerDb.getGamecontrollerDb(path);
7878
if (!glfwUpdateGamepadMappings(bbf)) throw new Exception("Failed to load");
7979
}

jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl/SdlJoystickInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public SdlJoystickInput(AppSettings settings) {
5151
this.settings = settings;
5252
try {
5353
String path = settings.getSDLGameControllerDBResourcePath();
54-
if (!path.isBlank()) {
54+
if (path != null && !path.trim().isEmpty()) {
5555
ByteBuffer bbf = SdlGameControllerDb.getGamecontrollerDb(path);
5656
if (SDL_AddGamepadMapping(bbf) == -1) {
5757
throw new Exception("Failed to load");

0 commit comments

Comments
 (0)