From c20d7bc5d563703315cc4c0e63941e5a1c245ff3 Mon Sep 17 00:00:00 2001 From: erik Date: Mon, 4 Feb 2008 22:11:16 +0000 Subject: [PATCH] --- .../src/main/java/org/wamblee/mythtv/LinkStructure.java | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.31.1