The code in question is:
current_mode = cc_display_monitor_get_mode (self->selected_output); cc_display_mode_get_resolution (current_mode, &width, &height);
Which means that cc_display_monitor_get_mode() returned NULL.
The code in question is:
current_mode = cc_display_ monitor_ get_mode (self-> selected_ output) ; display_ mode_get_ resolution (current_mode, &width, &height);
cc_
Which means that cc_display_ monitor_ get_mode( ) returned NULL.