Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-debug-dev] Idle thoughts on NPE and debugging outside a CDT project

It occurs to me that CDT has a lot of if() checks on null pointers, e.g.
whether or not a project exists. 

Would it be possible and desireable to replace the null pointer concept
with an EmptyProject object?

EmptyProject would implement the approperiate interface(s) ICProject(?)
+ IProject (?) and implement non-poisonous responses.


Similar problems exists in more than one place, e.g. CDT makes the
false  assumption that an executable exists for a debug session.

-- 
Øyvind Harboe
http://www.zylin.com




Back to the top