Affects Version/s: 2.7.1, 2.7
Fix Version/s: None
Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
The Javadoc comment below states that the parameter transformer is a "non-null reference to the the current transform-time state.":
- @param transformer non-null reference to the the current transform-time state.
public void execute(TransformerImpl transformer) throws TransformerException
However, the method does not check the parameter for "null". It executes normally without throwing any exception when called with a null transformer.
1. Add parameter check for "null"
2. Remove "non-null" from @param.