Skip to content

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

allow surfing, if no timelimit set. thx, theli

allo9ff2bd2f0ee7
diff --git a/source/de/anomic/data/userDB.java b/source/de/anomic/data/userDB.java
index f41649bed..a62d7611a 100644
--- a/source/de/anomic/data/userDB.java
+++ b/source/de/anomic/data/userDB.java
@@ -246,7 +246,7 @@ public final class userDB {
}
public boolean canSurf(){
- if( this.getTimeLimit().longValue() <= 0 || (this.updateLastAccess(true) < this.getTimeLimit().longValue()) )//no timelimit or timelimit not reached
+ if( this.getTimeLimit() == null || this.getTimeLimit().longValue() <= 0 || (this.updateLastAccess(true) < this.getTimeLimit().longValue()) )//no timelimit or timelimit not reached
return true;
else
return false;