Fixed NPE in listResourceDetalis logic