IOT-1268:
[ES][Android] APIs crashed with null parameter
(https://jira.iotivity.org/browse/IOT-1268)
Change-Id: I7b3bb5b9eb78df12b60e852a878ee73cb0d1c189
Signed-off-by: Parkhi <h_w.park@samsung.com>
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11521
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
public void setCloudProp(String authCode, String authProvider, String ciServer)
{
+ if(authCode == null)
+ {
+ authCode = "";
+ }
+ if(authProvider == null)
+ {
+ authProvider = "";
+ }
+ if(ciServer == null)
+ {
+ ciServer = "";
+ }
try {
mRep.setValue(ESConstants.OC_RSRVD_ES_AUTHCODE, authCode);
mRep.setValue(ESConstants.OC_RSRVD_ES_AUTHPROVIDER, authProvider);
public void setWiFiProp(String ssid, String pwd, WIFI_AUTHTYPE authtype, WIFI_ENCTYPE enctype)
{
+ if(ssid == null)
+ {
+ ssid = "";
+ }
+ if(pwd == null)
+ {
+ pwd = "";
+ }
try
{
mRep.setValue(ESConstants.OC_RSRVD_ES_SSID, ssid);
public void setDevConfProp(String language, String country, String location)
{
+ if(language == null)
+ {
+ language = "";
+ }
+ if(country == null)
+ {
+ country = "";
+ }
+ if(location == null)
+ {
+ location = "";
+ }
try {
mRep.setValue(ESConstants.OC_RSRVD_ES_LANGUAGE, language);
mRep.setValue(ESConstants.OC_RSRVD_ES_COUNTRY, country);