Skip to content

Commit

Permalink
Update StringCharLimitConverter.cs
Browse files Browse the repository at this point in the history
ME-MarvinE#67 Calendar view in maui causes crash on physical android device bug Something isn't workinggood first issue
ME-MarvinE#64 upgrading from version 3 to 4 breaks the application awaiting-author Awaiting a respose from the authorquestion
  • Loading branch information
atamietti committed Mar 17, 2023
1 parent 27d24e6 commit 159f561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XCalendar.Maui/Converters/StringCharLimitConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
return null;
}

string stringValue = value.ToString();
string stringValue = value?.ToString() ?? string.Empty;
int targetLength = System.Convert.ToInt32(parameter);

if (targetLength == 0)
Expand Down

0 comments on commit 159f561

Please sign in to comment.