Fix for NPE from older version of Producteev detail exposer

pull/14/head
Tim Su 14 years ago
parent b116bdfc7a
commit ef8798c0da

@ -62,7 +62,9 @@ public class ProducteevDetailExposer extends BroadcastReceiver implements Detail
if(!extended) {
long dashboardId = metadata.getValue(ProducteevTask.DASHBOARD_ID);
long responsibleId = metadata.getValue(ProducteevTask.RESPONSIBLE_ID);
long responsibleId = -1;
if(metadata.containsNonNullValue(ProducteevTask.RESPONSIBLE_ID))
responsibleId = metadata.getValue(ProducteevTask.RESPONSIBLE_ID);
// display dashboard if not "no sync" or "default"
StoreObject ownerDashboard = null;

Loading…
Cancel
Save