Avoiding Null-Pointer when result is not yet available (and some code renicing)