(no commit message)
[utils] / mythtv / monitor / src / main / java / org / wamblee / mythtv / LinkStructure.java
index 486723373f60e3e39de5e651f5adaf6a48313653..ced5ae119e58db69467161a9f77ff45e1f9a384b 100644 (file)
@@ -100,6 +100,10 @@ public class LinkStructure implements Listener {
     public void fileCreated(File aFile) {
         LOG.debug("file created " + aFile);
         Recording recording = _database.findRecording(aFile.getName());
+        if ( recording == null ) { 
+            LOG.warn("Spurious recording which should not exist according to mythtv: " + aFile);
+            return; 
+        }
         _recordings.put(aFile, recording);
         LOG.info("New recording detected " + aFile + " "
                 + recording);