From 3971c8144907482f1e835b599e57392d49e983e8 Mon Sep 17 00:00:00 2001 From: gaudryc Date: Sun, 6 Jan 2019 22:01:39 +0100 Subject: [PATCH] Bug: Comparison of String objects using == or != in com.bwssystems.HABridge.plugins.http.HTTPHandler.doHttpRequest(String, String, String, String, NameValue[]) --- .../java/com/bwssystems/HABridge/plugins/http/HTTPHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/bwssystems/HABridge/plugins/http/HTTPHandler.java b/src/main/java/com/bwssystems/HABridge/plugins/http/HTTPHandler.java index a35a33b..b41bf51 100644 --- a/src/main/java/com/bwssystems/HABridge/plugins/http/HTTPHandler.java +++ b/src/main/java/com/bwssystems/HABridge/plugins/http/HTTPHandler.java @@ -115,7 +115,7 @@ public class HTTPHandler { theContent = ""; log.debug("Successfull response - The http response is <<<" + theContent + ">>>"); retryCount = 2; - } else if (callType != null && callType == DeviceMapTypes.FHEM_DEVICE[DeviceMapTypes.typeIndex] && response.getStatusLine().getStatusCode() == 302) { + } else if (DeviceMapTypes.FHEM_DEVICE[DeviceMapTypes.typeIndex].equals(callType) && response.getStatusLine().getStatusCode() == 302) { if(theContent == null) theContent = ""; log.debug("Successfull response - The http response is <<<" + theContent + ">>>");