Merge pull request #6345 from Android-X13/fix-npe-in-offerbook

Prevent NPE when editing offer while not fully connected
This commit is contained in:
Christoph Atteneder 2022-09-09 10:18:00 +02:00 committed by GitHub
commit 44af373570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -733,7 +733,7 @@ abstract public class OfferBookView<R extends GridPane, M extends OfferBookViewM
private void onEditOpenOffer(Offer offer) {
OpenOffer openOffer = model.getOpenOffer(offer);
if (openOffer != null) {
if (model.isBootstrappedOrShowPopup() && openOffer != null) {
navigation.navigateToWithData(openOffer, MainView.class, PortfolioView.class, EditOfferView.class);
}
}