aboutsummarylogtreecommitdiffstats
path: root/portfolio.c
diff options
context:
space:
mode:
Diffstat (limited to 'portfolio.c')
-rw-r--r--portfolio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/portfolio.c b/portfolio.c
index 308356efa13e..70b42c5df079 100644
--- a/portfolio.c
+++ b/portfolio.c
@@ -340,6 +340,9 @@ void portfolio_print_all(Info_Array* portfolio_data) {
void portfolio_print_stock(const char* symbol) {
String* pString = portfolio_ncurses_get_plaintext_string(NULL);
+ if (pString == NULL)
+ return;
+
Json* jobj = json_tokener_parse(pString->data);
size_t i = 0, len = json_object_array_length(jobj);
while (i < len && strcmp(