[Acc] [PATCH] uadk: add null pointer check