diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/global.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/global.c b/src/core/global.c index 8736b30..3777fd9 100644 --- a/src/core/global.c +++ b/src/core/global.c @@ -261,9 +261,8 @@ void set_current_project(GStudyProject *project) GStudyProject *get_current_project(void) { - assert(_project != NULL); - - g_object_ref(G_OBJECT(_project)); + if (_project != NULL) + g_object_ref(G_OBJECT(_project)); return _project; |