File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,11 @@ public class Objects.Project : Objects.BaseObject {
324
324
GXml . DomElement propstat = element. get_elements_by_tag_name (" d:propstat" ). get_element (0 );
325
325
GXml . DomElement prop = propstat. get_elements_by_tag_name (" d:prop" ). get_element (0 );
326
326
name = get_content (prop. get_elements_by_tag_name (" d:displayname" ). get_element (0 ));
327
- color = get_content (prop. get_elements_by_tag_name (" x1:calendar-color" ). get_element (0 ));
327
+
328
+ GXml . DomHTMLCollection colorElements = prop. get_elements_by_tag_name (" x1:calendar-color" );
329
+ if (colorElements. length > 0 ) {
330
+ color = get_content (colorElements. get_element (0 ));
331
+ }
328
332
329
333
GXml . DomHTMLCollection sync_token_collection = prop. get_elements_by_tag_name (" d:sync-token" );
330
334
if (update_sync_token && sync_token_collection. length > 0 ) {
You can’t perform that action at this time.
0 commit comments