Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added try and catch for getting DateTimeStampTokens.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 23 Jan 2016 13:37:32 +0000 (13:37 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 23 Jan 2016 13:37:32 +0000 (13:37 +0000)
source/objects/calendarevent/CalendarEvent.cpp

index d175eed..b266d19 100644 (file)
@@ -150,6 +150,14 @@ void CalendarEventObject::ProcessData(){
        
        if (DataReceived.begin() != DataReceived.end()){
        
+               try {
+                       DateTimeStampTokens = DataReceived.begin()->first.substr(8);
+               }
+               
+               catch(const out_of_range &oor){
+                       // Do nothing as there is no data.
+               }               
+               
                DateTimeStampData = DataReceived.begin()->second;
                
        }
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy