aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hssf/eventusermodel/HSSFRequest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/hssf/eventusermodel/HSSFRequest.java')
-rw-r--r--src/java/org/apache/poi/hssf/eventusermodel/HSSFRequest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/hssf/eventusermodel/HSSFRequest.java b/src/java/org/apache/poi/hssf/eventusermodel/HSSFRequest.java
index 1b36ffd76e..5d6562dd53 100644
--- a/src/java/org/apache/poi/hssf/eventusermodel/HSSFRequest.java
+++ b/src/java/org/apache/poi/hssf/eventusermodel/HSSFRequest.java
@@ -92,11 +92,10 @@ public class HSSFRequest {
* @throws HSSFUserException User exception condition
*/
protected short processRecord(Record rec) throws HSSFUserException {
- Object obj = _records.get(Short.valueOf(rec.getSid()));
+ List<HSSFListener> listeners = _records.get(Short.valueOf(rec.getSid()));
short userCode = 0;
- if (obj != null) {
- List listeners = (List) obj;
+ if (listeners != null) {
for (int k = 0; k < listeners.size(); k++) {
Object listenObj = listeners.get(k);