adding *ngIf="itemObject" above div or in the same tag will solve the issue(in angular). The actual intention you needs to add null check on pointing object.
div class="detail-section">
<div *ngIf="productObj" class="container-fluid">
<img src="{{productObj.imageUrl }}" class="detail-img">