You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using org.epctagcoder.parse.GIAI.ParseGIAI.Builder() to create a new instance, setting an invalid RFID tag in the method org.epctagcoder.parse.GIAI.ParseGIAI.ChoiceStep.withRFIDTag(String) produces a NullPointerException when finally calling org.epctagcoder.parse.GIAI.ParseGIAI.BuildStep.build() method.
Instead of null, the org.epctagcoder.parse.GIAI.ParseGIAI.BuildStep.build() method might throw a ParseException (or any other dedicated exception) or even better, it could return a java.util.Optional to be easier to check the result of the parsing.
Thank you for this awesome library!
The text was updated successfully, but these errors were encountered:
When using
org.epctagcoder.parse.GIAI.ParseGIAI.Builder()
to create a new instance, setting an invalid RFID tag in the methodorg.epctagcoder.parse.GIAI.ParseGIAI.ChoiceStep.withRFIDTag(String)
produces aNullPointerException
when finally callingorg.epctagcoder.parse.GIAI.ParseGIAI.BuildStep.build()
method.For example, the following snippet will fail:
Instead of
null
, theorg.epctagcoder.parse.GIAI.ParseGIAI.BuildStep.build()
method might throw aParseException
(or any other dedicated exception) or even better, it could return ajava.util.Optional
to be easier to check the result of the parsing.Thank you for this awesome library!
The text was updated successfully, but these errors were encountered: