View with expander doesn't load

I'm making an app that's gonna have to use an expander.

However, after following the documentation about the expander and making it in my app, when going to the view that contains the expander, the app crashes and throws an empty exception (Java.Lang.NullPointerException: '')

I've provided both the output with the error and the expander I'm trying to create.

I'm debugging on an Android devide.

Attachment: Error_809f4498.rar

1 Reply

LN Lakshmi Natarajan Syncfusion Team March 9, 2020 04:12 AM UTC

Hi Dimitri,  
  
Thanks for using Syncfusion products.  
  
We have checked the reported query from our side. We suspect you are reporting the crash in below bug report,  
  
  
If yes, we would like to inform that above is the framework issue in latest Xamarin Version while loading Label directly inside Expander’s Header/Content and you can follow below bug for further updates from Xamarin team. Meanwhile, we suggest you to overcome the reported issue in sample by loading Label inside Grid. 
   
Actual Code   
Expected Code   
<expander:SfExpander RelativeLayout.XConstraint="{ConstraintExpression Type=Constant, Constant=10}" 
                    RelativeLayout.YConstraint="{ConstraintExpression Type=Constant, Constant=200}"> 
    <expander:SfExpander.Header> 
            <Label Text="Items"/> 
    </expander:SfExpander.Header> 
    <expander:SfExpander.Content> 
        <Grid Padding="10,10,10,10" BackgroundColor="White"> 
            <Label Text="Test" HeightRequest="50" VerticalTextAlignment="Center"/> 
        </Grid> 
    </expander:SfExpander.Content> 
</expander:SfExpander> 
<expander:SfExpander RelativeLayout.XConstraint="{ConstraintExpression Type=Constant, Constant=10}" 
                    RelativeLayout.YConstraint="{ConstraintExpression Type=Constant, Constant=200}"> 
    <expander:SfExpander.Header> 
        <Grid> 
            <Label Text="Items"/> 
        </Grid> 
    </expander:SfExpander.Header> 
    <expander:SfExpander.Content> 
        <Grid Padding="10,10,10,10" BackgroundColor="White"> 
            <Label Text="Test" HeightRequest="50" VerticalTextAlignment="Center"/> 
        </Grid> 
    </expander:SfExpander.Content> 
</expander:SfExpander> 
 
We have mentioned the same in our UG document also. Please refer our online UG from following link, 
 
 
If no and you are facing any other crash other than above, kindly share more details or revert us back with the issue replicated sample in order to analyze and provide better solution at our end.  
  
Regards,  
Lakshmi Natarajan 


Loader.
Up arrow icon