This is the code in my component.html (Angular Dart template):
<div *ngIf="selectedOffer!=null && !selectedOffer.isBotenOffer">...</div>
This is the exception I get:
EXCEPTION: NoSuchMethodError: The getter 'isBotenOffer' was called on null. Receiver: null Tried calling: isBotenOffer
selectedOffer my be null sometimes. But why is the second statement evaluated if the first is false? And how can I around this best?