Fixed null pointer issues in the TimerPlugin

pull/14/head
Sam Bosley 13 years ago
parent 3925306974
commit 67a342364e

@ -54,6 +54,8 @@ public class TimerPlugin extends BroadcastReceiver {
// this is needed just for stopping a task
if (!task.containsNonNullValue(Task.TIMER_START))
task = PluginServices.getTaskService().fetchById(task.getId(), Task.ID, Task.TIMER_START, Task.ELAPSED_SECONDS);
if (task == null)
return;
if(start) {
if(task.getValue(Task.TIMER_START) == 0) {

Loading…
Cancel
Save