From c26786cd41376f29d1f391644f77f27a9b197245 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/mythtv/monitor/src/main/java/org/wamblee/mythtv/LinkStructure.java b/mythtv/monitor/src/main/java/org/wamblee/mythtv/LinkStructure.java index 48672337..ced5ae11 100644 --- a/mythtv/monitor/src/main/java/org/wamblee/mythtv/LinkStructure.java +++ b/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