From 9ff2bd2f0ee7fa728a58b27d2ced114e41acb25f Mon Sep 17 00:00:00 2001 From: allo Date: Wed, 12 Oct 2005 10:58:21 +0000 Subject: [PATCH] allow surfing, if no timelimit set. thx, theli git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@920 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/data/userDB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;