Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TableSection TextColor NullReferenceException in Mac #14027

Closed
gktval opened this issue Mar 17, 2023 · 3 comments · Fixed by #14055
Closed

TableSection TextColor NullReferenceException in Mac #14027

gktval opened this issue Mar 17, 2023 · 3 comments · Fixed by #14055
Labels
fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working

Comments

@gktval
Copy link

gktval commented Mar 17, 2023

Description

When loading a table view in Mac, I get A NullReferenceException. This happens in Void WillDisplayHeaderView(UIKit.UIView, IntPtr).

In the stack trace, it shows this is happening at Microsoft.Maui.Controls.Handlers.Compatibility.TableViewModel.

This only happens when the TableSection TextColor is set.

Steps to Reproduce

Add the Code to your main page:

<TableView Intent="Menu">
    <TableRoot>
        <TableSection Title="Chapters" TextColor="Blue">
            <TextCell Text="1. Introduction to .NET MAUI"
                      Detail="Learn about .NET MAUI and what it provides." />
        </TableSection>
    </TableRoot>
</TableView>

Link to public reproduction project repository

NA

Version with bug

7.0 (current)

Last version that worked well

7.0 (current)

Affected platforms

macOS

Affected platform versions

14+

Did you find any workaround?

The workaround is not to set TableSection TextColor

Relevant log output

No response

@gktval gktval added the t/bug Something isn't working label Mar 17, 2023
@jfversluis jfversluis added the s/needs-repro Attach a solution or code which reproduces the issue label Mar 17, 2023
@ghost
Copy link

ghost commented Mar 17, 2023

Hi @gktval. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@gktval
Copy link
Author

gktval commented Mar 17, 2023

What more do you need than the 7 lines of code I posted. Do you need an entire github repository just to try adding TextColor to a TableSection? What I posted is the minimal amount of code needed to reproduce the error.

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Mar 17, 2023
@jfversluis jfversluis removed the s/needs-attention Issue has more information and needs another look label Mar 18, 2023
@jfversluis jfversluis added this to the Backlog milestone Mar 18, 2023
@ghost
Copy link

ghost commented Mar 18, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@jfversluis jfversluis added the platform/macOS 🍏 macOS / Mac Catalyst label Mar 18, 2023
ooikengsiang added a commit to ooikengsiang/maui that referenced this issue Mar 19, 2023
Fix TableSection TextColor NullReferenceException happen on iOS / MacCatalyst 14 and above
rmarinho pushed a commit that referenced this issue Mar 20, 2023
Fix TableSection TextColor NullReferenceException happen on iOS / MacCatalyst 14 and above
@samhouts samhouts added the fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! label Apr 12, 2023
@ghost ghost locked as resolved and limited conversation to collaborators May 12, 2023
@samhouts samhouts modified the milestones: Backlog, .NET 8 May 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants