*) bugfix for nullpointerexception

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2874 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 18 years ago
parent 8bdf22f325
commit 4d19d94348

@ -108,15 +108,15 @@ public class BlacklistService extends AbstractService {
if ((blacklistName == null)||(blacklistName.length() == 0))
throw new IllegalArgumentException("Blacklist name must not be null or empty.");
// check if we know all types passed to this function
checkForKnownBlacklistTypes(activateForBlacklistTypes);
if (blacklistName.indexOf("/") != -1)
throw new IllegalArgumentException("Blacklist name must not contain '/'.");
throw new IllegalArgumentException("Blacklist name must not contain '/'.");
// extracting the message context
extractMessageContext(AUTHENTICATION_NEEDED);
extractMessageContext(AUTHENTICATION_NEEDED);
// check if we know all types passed to this function
checkForKnownBlacklistTypes(activateForBlacklistTypes);
// initialize the list manager
initBlacklistManager();

Loading…
Cancel
Save