Page MenuHomePhabricator

focus: Many calls to NULL objects
Open, NormalPublic

Description

I introduced a WRN message if you call a function on NULL. This is the equivalent of obj->my_call() which would crash or raise an exception in pretty much languages. Not seeing those invalid calls can make it harder to debug complex apps.
See f2b5b00ca204e8a0b8c4ab671f60088da4edfca3.

EFL UI Focus has a lot of calls like this. Check the commit a92186be6ab7ba6b8ba0b2bedeaec51dcb4a3898 to verify that the null checks are good, or maybe the logic is really broken and needs fixing. Also, fix any remaining call to NULL. :)

jpeg created this task.Jan 16 2018, 3:08 AM
jpeg triaged this task as Normal priority.
jpeg updated the task description. (Show Details)Jan 16 2018, 3:20 AM
YOhoho added a subscriber: YOhoho.Jan 16 2018, 5:20 AM
zmike edited projects, added Restricted Project; removed efl.Jun 11 2018, 6:56 AM
bu5hm4n edited projects, added efl: widgets; removed Restricted Project.Jun 11 2018, 7:01 AM
zmike added a subscriber: zmike.Jan 17 2019, 11:35 AM

@bu5hm4n can you check this out?