[vala/staging] vala: Check before accessing "name" of parent_symbol which might be null
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Check before accessing "name" of parent_symbol which might be null
- Date: Mon, 9 Dec 2019 12:56:24 +0000 (UTC)
commit 6465dbb7e8618f7b33a4233b9369ec9d0195ab15
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Dec 9 12:15:44 2019 +0100
vala: Check before accessing "name" of parent_symbol which might be null
vala/valadatatype.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valadatatype.vala b/vala/valadatatype.vala
index e968ec989..7dd0e8dcb 100644
--- a/vala/valadatatype.vala
+++ b/vala/valadatatype.vala
@@ -134,7 +134,7 @@ public abstract class Vala.DataType : CodeNode {
if (type_symbol != null) {
Symbol global_symbol = type_symbol;
- while (global_symbol.parent_symbol.name != null) {
+ while (global_symbol.parent_symbol != null && global_symbol.parent_symbol.name !=
null) {
global_symbol = global_symbol.parent_symbol;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]