Frameworks: Fix possible NPE

cheers

Change-Id: I9c694a749689b0019df4f1d82f06dc56ee79efc2