(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Mon, 4 Feb 2008 22:11:16 +0000 (22:11 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Mon, 4 Feb 2008 22:11:16 +0000 (22:11 +0000)
trunk/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);