Merge \"Fix interpreter tests.\"
am: 3e6bc4c76a

Change-Id: I639ae01f1f1c64ac5dba4e9d5fd141ff573ff592
diff --git a/runtime/common_throws.cc b/runtime/common_throws.cc
index 19387fb..60f45cd 100644
--- a/runtime/common_throws.cc
+++ b/runtime/common_throws.cc
@@ -655,6 +655,12 @@
                      "Using a null lambda");
       break;
     }
+    case Instruction::MONITOR_ENTER:
+    case Instruction::MONITOR_EXIT: {
+      ThrowException("Ljava/lang/NullPointerException;", nullptr,
+                     "Attempt to do a synchronize operation on a null object");
+      break;
+    }
     default: {
       const DexFile* dex_file =
           method->GetDeclaringClass()->GetDexCache()->GetDexFile();