diff --git a/androidgcs/src/org/openpilot/androidgcs/telemetry/OPTelemetryService.java b/androidgcs/src/org/openpilot/androidgcs/telemetry/OPTelemetryService.java index 0ce1ab166..33e2be728 100644 --- a/androidgcs/src/org/openpilot/androidgcs/telemetry/OPTelemetryService.java +++ b/androidgcs/src/org/openpilot/androidgcs/telemetry/OPTelemetryService.java @@ -248,7 +248,9 @@ public class OPTelemetryService extends Service { public class LocalBinder extends Binder { public TelemTask getTelemTask(int id) { - return telemTask.getTelemTaskIface(); + if (telemTask != null) + return telemTask.getTelemTaskIface(); + return null; } public void openConnection() { Toast.makeText(getApplicationContext(), "Requested open connection", Toast.LENGTH_SHORT).show();