Fixed a potential null pointer when refreshing comments list

pull/14/head
Sam Bosley 12 years ago
parent 8b9536b75e
commit ac0df13e37

@ -416,6 +416,8 @@ public class EditNoteActivity extends LinearLayout implements TimerActionListene
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
if (task == null)
return;
task = PluginServices.getTaskService().fetchById(task.getId(), Task.NOTES, Task.ID, Task.UUID, Task.TITLE, Task.HISTORY_FETCH_DATE, Task.USER_ACTIVITIES_PUSHED_AT, Task.ATTACHMENTS_PUSHED_AT);
if (task == null)
return;

Loading…
Cancel
Save