- Was using non-nil terminated c-string resulting in a nil string being returned which caused an erroneous condition check.