Skip to content
Snippets Groups Projects
Commit 4acb169b authored by Botond Baranyi's avatar Botond Baranyi
Browse files

OOP: fixed null reference as initial value for class variable (bug 563718)


Change-Id: Ice786f009708e01f7944c020b553fa63ff977ac5
Signed-off-by: default avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent e4e0cf8c
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,9 @@ public:
TTCN_error("Invalid dynamic type of initial value.");
}
}
else {
ptr = NULL;
}
}
void clean_up() {
......
......@@ -385,6 +385,10 @@ testcase tc_references() runs on CT {
if (ispresent(v_null)) {
setverdict(fail, "#17");
}
var BaseClass v_base2 := v_null;
if (v_base2 != null) {
setverdict(fail, "#18");
}
setverdict(pass);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment