Add null check

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1783914 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Greg Woolsey 2017-02-21 18:18:10 +00:00
parent af731952ec
commit c36deabff5
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ public class DataValidationEvaluator {
* validation applies
*/
public DataValidation getValidationForCell(CellReference cell) {
return getValidationContextForCell(cell).getValidation();
final DataValidationContext vc = getValidationContextForCell(cell);
return vc == null ? null : vc.getValidation();
}
public DataValidationContext getValidationContextForCell(CellReference cell) {