From d73e6b21e10f2a3d1f6e313b40f66c009c09a79c Mon Sep 17 00:00:00 2001
From: =?utf8?q?Pawe=C5=82=20Stawicki?=
Date: Fri, 16 Mar 2018 13:05:20 +0100
Subject: [PATCH] [prevent][42870] Fix for null pointer dereference
Change-Id: I74e51363d0e6ec34e9b771f605d283f1311af803
---
test/at_spi2_tool.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/at_spi2_tool.c b/test/at_spi2_tool.c
index d7b91d5..63a3adb 100644
--- a/test/at_spi2_tool.c
+++ b/test/at_spi2_tool.c
@@ -323,10 +323,10 @@ static char *_get_info(AtspiAccessible *node, int length_limit, bool *attributes
unique_id, (uintptr_t)eo_ptr,
node_role_name,
attributes,
- box_size->x,
- box_size->y,
- box_size->width,
- box_size->height,
+ box_size ? box_size->x : "nil",
+ box_size ? box_size->y : "nil",
+ box_size ? box_size->width : "nil",
+ box_size ? box_size->height : "nil",
node_name,
states,
current_node_has_relations ? "*" : "");
--
2.7.4