Bug: Comparison of String objects using == or != in

com.bwssystems.HABridge.plugins.http.HTTPHandler.doHttpRequest(String,
String, String, String, NameValue[])
This commit is contained in:
gaudryc
2019-01-06 22:01:39 +01:00
parent e1b5aede66
commit 3971c81449

View File

@@ -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 + ">>>");