cyclus/core — Issue #8: throw exceptions instead of returning NULL
Author: rwcarlsen
Created: 2012-01-31 20:07:03+00:00
State: open

Instead of initializing NULL member variables, and returning NULL pointers, we should throw an exception within the get method of not-fully-initialized member variables. Rather than dealing with these NULL pointers externally with if statements, this will mean wrapping the get statements in try/catch blocks. This should be implemented fully across the code for consistency.
Note the addition of specific exception categories in r435. The `CycNullException` should be used for null pointer cases.

I think this has been mostly taken care of. Someone still ought to comb through the code carefully and make sure there are no lingering NULL returns for pointers.