null exception in clearAssetRefs