diff --git a/src/main/java/net/rptools/maptool/model/Campaign.java b/src/main/java/net/rptools/maptool/model/Campaign.java index 446c140aca..496ac19448 100644 --- a/src/main/java/net/rptools/maptool/model/Campaign.java +++ b/src/main/java/net/rptools/maptool/model/Campaign.java @@ -773,10 +773,13 @@ public CampaignDto toDto() { .map(MacroButtonProperties::toDto) .collect(Collectors.toList())); dto.addAllZones(zones.values().stream().map(Zone::toDto).collect(Collectors.toList())); - dto.addAllGmMacroButtonProperties( - gmMacroButtonProperties.stream() - .map(MacroButtonProperties::toDto) - .collect(Collectors.toList())); + // gmMacroButtonProperties is null if you are loading an old campaign file < 1.5.6 + if (gmMacroButtonProperties != null) { + dto.addAllGmMacroButtonProperties( + gmMacroButtonProperties.stream() + .map(MacroButtonProperties::toDto) + .collect(Collectors.toList())); + } return dto.build(); } } diff --git a/src/main/java/net/rptools/maptool/model/Token.java b/src/main/java/net/rptools/maptool/model/Token.java index 3060662f14..2d6c646574 100644 --- a/src/main/java/net/rptools/maptool/model/Token.java +++ b/src/main/java/net/rptools/maptool/model/Token.java @@ -1725,7 +1725,7 @@ public Object setState(String aState, Object aValue) { // setBarVisible sends a boolean to show/hide a bar if (aValue instanceof Boolean) { if ((Boolean) aValue) { - return state.put(aState, 1.0); + return state.put(aState, aValue); } else { return state.remove(aState); }