From: erik Date: Mon, 4 Feb 2008 22:11:16 +0000 (+0000) Subject: (no commit message) X-Git-Tag: wamblee-utils-0.2@603~257 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=c20d7bc5d563703315cc4c0e63941e5a1c245ff3;p=utils --- diff --git a/trunk/mythtv/monitor/src/main/java/org/wamblee/mythtv/LinkStructure.java b/trunk/mythtv/monitor/src/main/java/org/wamblee/mythtv/LinkStructure.java index 48672337..ced5ae11 100644 --- a/trunk/mythtv/monitor/src/main/java/org/wamblee/mythtv/LinkStructure.java +++ b/trunk/mythtv/monitor/src/main/java/org/wamblee/mythtv/LinkStructure.java @@ -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);