the49ltd / The49.Maui.BottomSheet

.NET MAUI library used to display pages as Bottom Sheets
MIT License
324 stars 31 forks source link

Calling the BottomSheet OnAppearing() is causing a crash!!! #53

Closed Frizbi22 closed 11 months ago

Frizbi22 commented 1 year ago

<?xml version="1.0" encoding="utf-8" ?>

<the49:BottomSheet xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:the49="https://schemas.the49.com/dotnet/2023/maui" Padding="16,32" BackgroundColor="LightGrey" HasHandle="True" HandleColor="Red" x:Class="MauiApp2.Controls.BottomSheet">

protected override void OnAppearing() { base.OnAppearing(); try { var page = new BottomSheet(); page.ShowAsync(false); } catch(Exception ex) { Console.Write(ex.ToString()); } }
Frizbi22 commented 1 year ago

Java.Lang.NullPointerException: ''

ac-lap commented 12 months ago

Facing the same issue on upgrading from 1.0.1 to 1.0.4