Add null handling on cache

Fixed a nullpointer which causes bug in sonar.

Issue-ID: NONRTRIC-910
Change-Id: I4f8a42c6874e72be27078678273be072f4c8faf2
Signed-off-by: aravind.est <aravindhan.a@est.tech>
1 file changed