Fix mapping for scene room mapping as well. doh!

This commit is contained in:
Admin
2015-08-27 11:47:00 -05:00
parent e38374f749
commit d87f3bc541
2 changed files with 5 additions and 2 deletions

View File

@@ -72,7 +72,10 @@ public class VeraInfo {
Scene theScene = null;
while (theSecneIter.hasNext()) {
theScene = theSecneIter.next();
theScene.setRoom(roomMap.get(theScene.getRoom()).getName());
if(theScene.getRoom() != null && roomMap.get(theScene.getRoom()) != null)
theScene.setRoom(roomMap.get(theScene.getRoom()).getName());
else
theScene.setRoom("no room");
}
}