File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
jme3-lwjgl3/src/main/java/com/jme3/input/lwjgl Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments