Permalink
Browse files

Real fix for npe when creating new tasks with producteev

  • Loading branch information...
1 parent c182159 commit 057cfed7fc4a5513fa50579a2c10ddd1d0e515ab @timsu timsu committed Aug 17, 2010
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.timsu.astrid"
- android:versionName="3.2.2 (build your own filters, easy sorting, customizable widget, ui improvements)"
- android:versionCode="149">
+ android:versionName="3.2.3 (build your own filters, easy sorting, customizable widget, ui improvements)"
+ android:versionCode="150">
<!-- widgets, alarms, and services will break if Astrid is installed on SD card -->
<!-- android:installLocation="internalOnly"> -->
@@ -87,7 +87,7 @@ public void onNothingSelected(AdapterView<?> spinnerParent) {
private void refreshResponsibleSpinner(ArrayList<ProducteevUser> newUsers) {
Metadata metadata = ProducteevDataService.getInstance().getTaskMetadata(myTask.getId());
long responsibleId = -1;
- if(metadata.containsNonNullValue(ProducteevTask.RESPONSIBLE_ID))
+ if(metadata != null && metadata.containsNonNullValue(ProducteevTask.RESPONSIBLE_ID))
responsibleId = metadata.getValue(ProducteevTask.RESPONSIBLE_ID);
refreshResponsibleSpinner(newUsers, responsibleId);
}

0 comments on commit 057cfed

Please sign in to comment.