Skip to content
Permalink
Browse files

fix exception when no powermanagerr

  • Loading branch information...
bobjacobsen committed Sep 22, 2018
1 parent 11742fb commit 95db409471a42ce45211c0481d563ec5b5b179b5
Showing with 1 addition and 1 deletion.
  1. +1 −1 java/src/jmri/server/json/power/JsonPowerHttpService.java
@@ -42,7 +42,7 @@ public JsonNode doGet(String type, String name, Locale locale) throws JsonExcept
root.put(TYPE, POWER);
ObjectNode data = root.putObject(DATA);
try {
PowerManager manager = InstanceManager.getDefault(PowerManager.class);
PowerManager manager = InstanceManager.getNullableDefault(PowerManager.class);
if (name != null && !name.isEmpty()) {
for (PowerManager pm : InstanceManager.getList(PowerManager.class)) {
if (pm.getUserName().equals(name)) {

0 comments on commit 95db409

Please sign in to comment.
You can’t perform that action at this time.