Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

added debug message

orbiter634543121b46
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();