mirror of https://github.com/apache/poi.git
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
af731952ec
commit
c36deabff5
|
@ -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…
Reference in New Issue