[SQUASH ME] nativenet: add NULL check