diff --git a/nop-ooxml/nop-ooxml-xlsx/src/main/java/io/nop/ooxml/xlsx/parse/SheetNodeHandler.java b/nop-ooxml/nop-ooxml-xlsx/src/main/java/io/nop/ooxml/xlsx/parse/SheetNodeHandler.java index 360f115d3..753a08d6c 100644 --- a/nop-ooxml/nop-ooxml-xlsx/src/main/java/io/nop/ooxml/xlsx/parse/SheetNodeHandler.java +++ b/nop-ooxml/nop-ooxml-xlsx/src/main/java/io/nop/ooxml/xlsx/parse/SheetNodeHandler.java @@ -339,9 +339,11 @@ public void endNode(String localName) { } else if ("dataValidation".equals(localName)) { output.dataValidation(dataValidation); } else if ("formula".equals(localName)) { - vfOpen = false; - dataValidation.setFormula(validationFormula.toString()); - validationFormula.setLength(0); + if(dataValidation != null) { + vfOpen = false; + dataValidation.setFormula(validationFormula.toString()); + validationFormula.setLength(0); + } } }