Skip to content

Commit cac4934

Browse files
committed
Fix NPE in AppController
1 parent 993e127 commit cac4934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/eu/openanalytics/shinyproxy/controllers/AppController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public ResponseEntity<ApiResponse<Proxy>> startApp(@PathVariable String specId,
253253
String id = UUID.randomUUID().toString();
254254
runtimeValues.add(new RuntimeValue(PublicPathKey.inst, getPublicPath(id)));
255255
runtimeValues.add(new RuntimeValue(AppInstanceKey.inst, appInstanceName));
256-
if (appBody.getTimezone() != null) {
256+
if (appBody != null && appBody.getTimezone() != null) {
257257
runtimeValues.add(new RuntimeValue(UserTimeZoneKey.inst, appBody.getTimezone()));
258258
}
259259

0 commit comments

Comments
 (0)