Skip to content

Commit

Permalink
Fix NPE when not recording data
Browse files Browse the repository at this point in the history
  • Loading branch information
rhauch committed Dec 22, 2016
1 parent 6f3892e commit 6cd58b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
strongback.version=1.2.0-Beta4
strongback.version=1.2.0-Beta5
#
# The build will download a specific version of the WPILib given by the following URL
# and install it into the 'libs/wpilib' folder. To use a different version of WPILib,
Expand Down
4 changes: 1 addition & 3 deletions strongback/src/org/strongback/Strongback.java
Original file line number Diff line number Diff line change
Expand Up @@ -717,9 +717,7 @@ public static void start() {
* Same as {@link #start()}.
*
* @see #start()
* @deprecated
*/
@Deprecated
public static void restart() {
ENGINE.start();
}
Expand Down Expand Up @@ -1368,7 +1366,7 @@ public synchronized boolean submit(Command command) {
}

public synchronized void flushRecorders() {
if (isRunning()) {
if (isRunning() && dataRecorderDriver != null) {
// Finally flush the data recorder ...
dataRecorderDriver.flush();
}
Expand Down

0 comments on commit 6cd58b4

Please sign in to comment.