Skip to content

Commit d522501

Browse files
SERXIONE-6874 : SystemServices Crash
Signed-off-by: HarshiniRavichandran <Harshini_Ravichandran@comcast.com>
1 parent b6546ab commit d522501

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

SystemServices/SystemServices.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2715,8 +2715,7 @@ namespace WPEFramework {
27152715
bool SystemServices::readTerritoryFromFile()
27162716
{
27172717
bool retValue = true;
2718-
try{
2719-
if(Utils::fileExists(TERRITORYFILE)){
2718+
if(Utils::fileExists(TERRITORYFILE)){
27202719
ifstream inFile(TERRITORYFILE);
27212720
string str;
27222721
getline (inFile, str);
@@ -2752,13 +2751,6 @@ namespace WPEFramework {
27522751
}else{
27532752
LOGERR("Territory is not set");
27542753
}
2755-
}
2756-
catch(...){
2757-
LOGERR("Exception caught while reading territory file");
2758-
retValue = false;
2759-
m_strTerritory = "";
2760-
m_strRegion = "";
2761-
}
27622754
return retValue;
27632755
}
27642756

0 commit comments

Comments
 (0)