Benoit Voisin created DROOLS-546:
------------------------------------
Summary: FactType.get/set should throw specific exception (not NPE) for
unknown fields
Key: DROOLS-546
URL:
https://issues.jboss.org/browse/DROOLS-546
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 6.1.0.CR1
Reporter: Benoit Voisin
Assignee: Mark Proctor
factType.get(instance, "unknownField") is currently throwing an NPE. This gives
improper information to the user/developper.
I propose that it throws a new UnknownFactFieldException giving improved information
giving good hints for debugging or enabling specific exception management.
I will provide shortly a pull-request with a possible fix.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)