aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2016-06-20 00:08:11 +0000
committerAndreas Beeker <kiwiwings@apache.org>2016-06-20 00:08:11 +0000
commit5be01c04f434d8df94f6ab96c1434a315e8fd10b (patch)
tree3bd3473ad08b02a7f23a02615073da14cc3473cf /src/ooxml
parent63e1afdac4fa980f31fc5addf289c033a8c5a674 (diff)
downloadpoi-5be01c04f434d8df94f6ab96c1434a315e8fd10b.tar.gz
poi-5be01c04f434d8df94f6ab96c1434a315e8fd10b.zip
findbugs fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1749238 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml')
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationSheet.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationSheet.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationSheet.java
index a0cd24d450..0286740e08 100644
--- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationSheet.java
+++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationSheet.java
@@ -79,7 +79,9 @@ final class XSSFEvaluationSheet implements EvaluationSheet {
@Override
public boolean equals(Object obj) {
- if (obj == null) return false;
+ if (!(obj instanceof CellKey)) {
+ return false;
+ }
// assumes other object is one of us, otherwise ClassCastException is thrown
final CellKey oKey = (CellKey) obj;
return _row == oKey._row && _col == oKey._col;