[frogr] Add missing null check
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Add missing null check
- Date: Thu, 16 Jan 2014 22:22:48 +0000 (UTC)
commit 77e86234d77b828a571af75fcd34d0a0eac0efb2
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Thu Jan 16 21:51:51 2014 +0000
Add missing null check
src/frogr-controller.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index f976dd8..3782bb6 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -2991,8 +2991,11 @@ frogr_controller_load_pictures (FrogrController *self,
priv = FROGR_CONTROLLER_GET_PRIVATE (self);
- max_picture_filesize = frogr_account_get_max_picture_filesize (priv->account);
- max_video_filesize = frogr_account_get_max_video_filesize (priv->account);
+ if (priv->account)
+ {
+ max_picture_filesize = frogr_account_get_max_picture_filesize (priv->account);
+ max_video_filesize = frogr_account_get_max_video_filesize (priv->account);
+ }
loader = frogr_file_loader_new_from_uris (fileuris, max_picture_filesize, max_video_filesize);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]