From 7b800a0c8e40705b0584236f68862cd85b2b64c4 Mon Sep 17 00:00:00 2001 From: reger Date: Tue, 7 Jan 2014 22:44:24 +0100 Subject: [PATCH] fix: NPE on shutdown via script --- source/net/yacy/yacy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/yacy.java b/source/net/yacy/yacy.java index 6fef1bfd8..5431631dc 100644 --- a/source/net/yacy/yacy.java +++ b/source/net/yacy/yacy.java @@ -523,7 +523,7 @@ public final class yacy { final HTTPClient con = new HTTPClient(ClientIdentification.yacyInternetCrawlerAgent); con.setHeader(requestHeader.entrySet()); try { - con.GETbytes("http://localhost:"+ port +"/" + path, sb.getConfig(SwitchboardConstants.ADMIN_ACCOUNT_USER_NAME,"admin"), encodedPassword); + con.GETbytes("http://localhost:"+ port +"/" + path, config.getProperty(SwitchboardConstants.ADMIN_ACCOUNT_USER_NAME,"admin"), encodedPassword); if (con.getStatusCode() > 199 && con.getStatusCode() < 300) { ConcurrentLog.config("COMMAND-STEERING", "YACY accepted steering command: " + processdescription);