Fix HAL connect issues.

This commit is contained in:
Admin
2017-05-26 15:36:01 -05:00
parent 409c93bfb2
commit fb9cc64839
2 changed files with 10 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ public class HalInfo {
String theUrl = null;
String theData;
if(halAddress.getSecure())
if(halAddress.getSecure()!= null && halAddress.getSecure())
theUrl = "https://";
else
theUrl = "http://";
@@ -150,7 +150,7 @@ public class HalInfo {
deviceList = new ArrayList<HalDevice>();
while (theHalDevices.hasNext()) {
HalDevice theHalDevice = theHalDevices.next();
if(halAddress.getSecure())
if(halAddress.getSecure()!= null && halAddress.getSecure())
theUrl = "https://";
else
theUrl = "http://";