fix for possible null string

This commit is contained in:
guinux 2015-03-08 12:06:29 +01:00
parent 278fd3f15c
commit 5af2f493ff

View File

@ -56,7 +56,7 @@ namespace Pamac {
size = 0; size = 0;
size_string = ""; size_string = "";
url = aur_json.get_string_member ("URL"); url = aur_json.get_string_member ("URL");
licenses = aur_json.get_string_member ("License"); licenses = aur_json.get_string_member ("License") ?? dgettext (null, "Unknown");
reason = 0; reason = 0;
} else { } else {
name = ""; name = "";