Skip to content

Commit 522fd34

Browse files
committed
Corrected NPE in the engine's pause method
1 parent ab2610b commit 522fd34

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
strongback.version=1.2.0-Beta1
1+
strongback.version=1.2.0-Beta2
22
#
33
# The build will download a specific version of the WPILib given by the following URL
44
# and install it into the 'libs/wpilib' folder. To use a different version of WPILib,

strongback/src/org/strongback/Strongback.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,8 +1271,10 @@ public boolean isRunning() {
12711271
return running.get();
12721272
}
12731273

1274-
public void pause() {
1275-
executor.stop();
1274+
public synchronized void pause() {
1275+
if (running.get()) {
1276+
executor.stop();
1277+
}
12761278
}
12771279

12781280
/**

0 commit comments

Comments
 (0)