Skip to content

Commit 7f42ab3

Browse files
committed
Fixed possible NullPointer
1 parent ccb60b1 commit 7f42ab3

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

eclipseProjects/org.agentgui/bundles/org.agentgui.core/src/agentgui/simulationService/time/TimeModelDateBased.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public ZoneId getZoneId() {
120120
* @param newZoneId the new zone id
121121
*/
122122
public void setZoneId(ZoneId newZoneId) {
123-
if (newZoneId.equals(ZoneId.systemDefault())==true) {
123+
if (newZoneId!=null && newZoneId.equals(ZoneId.systemDefault())==true) {
124124
this.zoneId = null;
125125
} else {
126126
this.zoneId = newZoneId;
109 Bytes
Loading

eclipseProjects/org.agentgui/bundles/org.awb.env.networkModel/src/org/awb/env/networkModel/controller/UIMessagingController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
*/
4141
public class UIMessagingController {
4242

43-
private boolean debug = true;
43+
private boolean debug = false;
4444

4545
private GraphEnvironmentController graphController;
4646
private MessagingJInternalFrame messagingFrame;

0 commit comments

Comments
 (0)