dansteen / libRTMTasker

Library to allow Tasker to access and manipulate tasks in Remember the Milk
MIT License
7 stars 2 forks source link

rtmGetTasks errors when filter does not match any tasks #4

Open amcameron opened 9 years ago

amcameron commented 9 years ago

Steps to reproduce: Create a task which:

  1. sets %filter to a value returning no tasks from your RTM account;
  2. calls rtmGetTasks with a JavaScript action.

Expected behaviour: Following the JavaScript call to rtmGetTasks, the rest of the Task should execute with %tasks unset, or possibly set to an empty string.

Actual behaviour: A toast notification appears saying, "JavaScriptlet: line 2: Uncaught TypeError: Cannot read property 'length' of undefined". This Javascript error causes premature termination of the Tasker task.

dansteen commented 9 years ago

Hm. I'll take a look.