Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ObjectD opCast fails when casting from null #241
I have some code in tilix that loops through parents looking for specific widget, at one point it hits the following line:
This results in a segmentation fault when parent.getParent() returns null. Should opCast be smart enough to check for null and then just short circuit the method and return null?
Right now I can protect against it using a null check:
I think the change in opCast was introduced in January, I'm not sure the feature this is tied too is used overly much hence why it may have escaped detection until now.
The original tilix issue is here: gnunn1/tilix#1373