From 634543121b46ce2409e1a88d27a3ceff9e26b171 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 19 May 2006 21:49:12 +0000 Subject: [PATCH] added debug message git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2120 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/data/blogBoard.java | 5 ++++- source/de/anomic/data/wikiBoard.java | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/data/blogBoard.java b/source/de/anomic/data/blogBoard.java index 326852bd6..999f217ef 100644 --- a/source/de/anomic/data/blogBoard.java +++ b/source/de/anomic/data/blogBoard.java @@ -174,7 +174,10 @@ public class blogBoard { public Date date() { try { String c = (String) record.get("date"); - if(c == null) return new Date(); + if (c == null) { + System.out.println("DEBUG - ERROR: date field missing in blogBoard"); + return new Date(); + } return SimpleFormatter.parse(c); } catch (ParseException e) { return new Date(); diff --git a/source/de/anomic/data/wikiBoard.java b/source/de/anomic/data/wikiBoard.java index 8712b1a61..74ab30be9 100644 --- a/source/de/anomic/data/wikiBoard.java +++ b/source/de/anomic/data/wikiBoard.java @@ -197,7 +197,10 @@ public class wikiBoard { public Date date() { try { String c = (String) record.get("date"); - if(c == null) return new Date(); + if (c == null) { + System.out.println("DEBUG - ERROR: date field missing in wikiBoard"); + return new Date(); + } return SimpleFormatter.parse(c); } catch (ParseException e) { return new Date();