Merge "Fix a NPE when update message status"
diff --git a/src/com/android/mms/transaction/MessageStatusService.java b/src/com/android/mms/transaction/MessageStatusService.java
index 35a500a..f9c8af2 100644
--- a/src/com/android/mms/transaction/MessageStatusService.java
+++ b/src/com/android/mms/transaction/MessageStatusService.java
@@ -103,7 +103,9 @@
             } else {
                 error("Can't find message for status update: " + messageUri);
             }
-        } finally {
+        }catch(NullPointerException e){
+            return null;
+        }finally {
             cursor.close();
         }
         return message;