--- smsdaemon/ModemTransceiver.cpp 2008/12/10 08:59:58 171 +++ smsdaemon/ModemTransceiver.cpp 2008/12/12 12:13:05 178 @@ -19,6 +19,7 @@ #include "SmsPdu.h" #include "SmsHelper.h" +#include "Exceptions.h" using namespace std; @@ -112,7 +113,16 @@ string sms_entry = result.substr(0,endpos); - retval.push_back( SmsHelper::FromPduString(sms_entry) );; + + try + { + SMS sms = SmsHelper::FromPduString(sms_entry); + + retval.push_back( sms ); + } + catch (smsnotfoundexception& e) //do nothing + { + } if (endpos == string::npos) break;