Skip to content

Commit

Permalink
[#377] Exception thrown while reading certain QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
micjahn committed Dec 23, 2021
1 parent 0867d72 commit 83d6e6a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/lib/common/CharacterSetECI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,8 @@ private static void addCharacterSet(int value, String[] encodingNames)
/// <returns><see cref="CharacterSetECI"/> representing ECI of given value, or null if it is legal but unsupported</returns>
public static CharacterSetECI getCharacterSetECIByValue(int value)
{
if (value < 0 || value >= 900)
{
if (!VALUE_TO_ECI.ContainsKey(value))
return null;
}
return VALUE_TO_ECI[value];
}

Expand Down

0 comments on commit 83d6e6a

Please sign in to comment.