Fix interpreter tests.

Monitor operations can throw NPEs.

bug:29321958
Change-Id: If7a2e35a2073a7984a5126a826e722c918ba8d3a
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();