Closed shreyas1599 closed 3 years ago
This seems to be a problem of HighlightView
. This is the offending line. When patch
is null as is the case with the above screenshot, the error occurs.
I can catch it in files_item.dart
itself but I think it would be better for the package to handle null.
I'm thinking of replacing this line with patch ?? "No text to be shown here"
or should I just leave it as an empty string. I think the first option is better because github returns a null patch only if the file has binary data. What do you think @pd4d10 ?
OK. I have no strong preference for this, as long as it is easy to understand for users.
I noticed this a while back. Forgot to get to it. Opening an issue in case I forget again.