Skip to content

Commit 6cd58b4

Browse files
committed
Fix NPE when not recording data
1 parent 6f3892e commit 6cd58b4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
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-Beta4
1+
strongback.version=1.2.0-Beta5
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: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,7 @@ public static void start() {
717717
* Same as {@link #start()}.
718718
*
719719
* @see #start()
720-
* @deprecated
721720
*/
722-
@Deprecated
723721
public static void restart() {
724722
ENGINE.start();
725723
}
@@ -1368,7 +1366,7 @@ public synchronized boolean submit(Command command) {
13681366
}
13691367

13701368
public synchronized void flushRecorders() {
1371-
if (isRunning()) {
1369+
if (isRunning() && dataRecorderDriver != null) {
13721370
// Finally flush the data recorder ...
13731371
dataRecorderDriver.flush();
13741372
}

0 commit comments

Comments
 (0)