Just like querySingleState, an ongoing state cannot be null
if the passed attribute is valid. At worst the value can be a
NullStateValue.
Change-Id: I138ce6d0d62a0cb45706117fd4d0e4bdf8e8fc58
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/68815
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
* @throws AttributeNotFoundException
* If the requested attribute is invalid
*/
- ITmfStateValue queryOngoingState(int attributeQuark)
+ @NonNull ITmfStateValue queryOngoingState(int attributeQuark)
throws AttributeNotFoundException;
/**
* found in the event
*/
ITmfStateValue valueState = (quark != IXmlStateSystemContainer.ROOT_QUARK) ? ss.queryOngoingState(quark) : filter.getEventFieldValue(event);
- if (valueState == null) {
- throw new IllegalStateException("TmfXmlCondition : The state value does not exist in the state system"); //$NON-NLS-1$
- }
/* Get the value to compare to from the XML file */
ITmfStateValue valueXML;
*/
if (quarkQuery != IXmlStateSystemContainer.ERROR_QUARK) {
value = ss.queryOngoingState(quarkQuery);
- if (value == null) {
- throw new IllegalStateException();
- }
}
return value;
}