GNOME Bugzilla – Bug 740114
No verification that SudokuView exists before calling its methods
Last modified: 2014-11-14 14:04:36 UTC
When changing the options (highlighter and warnings) from the menu during the 'Select Difficulty' screen the following errors were shown: ** (gnome-sudoku:11303): CRITICAL **: sudoku_view_set_highlighter: assertion 'self != NULL' failed and for the warnings option: ** (gnome-sudoku:11303): CRITICAL **: sudoku_view_set_show_warnings: assertion 'self != NULL' failed (even though the changes were still applied when the new game started). I think it would be good to do the extra checks that the SudokuView object exists before trying to use its methods. I'll attach my proposed patch in a comment bellow.
Created attachment 290706 [details] [review] My proposed patch
Review of attachment 290706 [details] [review]: Indeed. I'm just going to change the formatting a bit on this patch before pushing it. Thanks!