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:
parent
b17701cd14
commit
62d7050af9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user