Index: trunk/src/org/openstreetmap/josm/data/notes/NoteComment.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/notes/NoteComment.java	(revision 9568)
+++ trunk/src/org/openstreetmap/josm/data/notes/NoteComment.java	(revision 9569)
@@ -28,5 +28,6 @@
         closed,
         reopened,
-        commented
+        commented,
+        hidden
     }
 
Index: trunk/src/org/openstreetmap/josm/io/NoteReader.java
===================================================================
--- trunk/src/org/openstreetmap/josm/io/NoteReader.java	(revision 9568)
+++ trunk/src/org/openstreetmap/josm/io/NoteReader.java	(revision 9569)
@@ -130,5 +130,5 @@
         @Override
         public void endElement(String namespaceURI, String localName, String qName) {
-            if ("note".equals(qName)) {
+            if (notes != null && "note".equals(qName)) {
                 notes.add(thisNote);
             }
Index: trunk/test/unit/org/openstreetmap/josm/io/NoteReaderTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/io/NoteReaderTest.java	(revision 9568)
+++ trunk/test/unit/org/openstreetmap/josm/io/NoteReaderTest.java	(revision 9569)
@@ -83,3 +83,20 @@
         assertEquals("", c2.getText());
     }
+
+    /**
+     * Non-regression test for bug #12393.
+     * @throws Exception if an error occurs
+     */
+    @Test
+    public void testTicket12393() throws Exception {
+        // CHECKSTYLE.OFF: LineLength
+        new NoteReader(
+            "<note id=\"233775\" lat=\"48.2411985\" lon=\"-122.3744820\" created_at=\"2014-08-31T17:13:29Z\" closed_at=\"2015-09-06T23:35:14Z\">"+
+            "<comment action=\"opened\" timestamp=\"2014-08-31T17:13:29Z\" uid=\"7247\" user=\"goldfndr\">Jump Start Espresso | 26930</comment>"+
+            "<comment action=\"hidden\" timestamp=\"2015-09-06T23:34:26Z\" uid=\"355617\" user=\"pnorman\"></comment>"+
+            "<comment action=\"reopened\" timestamp=\"2015-09-06T23:34:38Z\" uid=\"355617\" user=\"pnorman\"></comment>"+
+            "<comment action=\"closed\" timestamp=\"2015-09-06T23:35:14Z\" uid=\"355617\" user=\"pnorman\">mapped, but inadvertently hid the note</comment>"+
+            "</note>").parse();
+        // CHECKSTYLE.ON: LineLength
+    }
 }
