aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hpsf
diff options
context:
space:
mode:
authorSergey Vladimirov <sergey@apache.org>2011-10-22 01:57:24 +0000
committerSergey Vladimirov <sergey@apache.org>2011-10-22 01:57:24 +0000
commit5005fe6ce00079777951d10eb432bc0e1612af66 (patch)
tree11b02b0182a2f86573f5524af112f899000150c3 /src/java/org/apache/poi/hpsf
parente1424086c30d75985b771cee16ecb40d7d9fc477 (diff)
downloadpoi-5005fe6ce00079777951d10eb432bc0e1612af66.tar.gz
poi-5005fe6ce00079777951d10eb432bc0e1612af66.zip
fix NPE
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187633 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/hpsf')
-rw-r--r--src/java/org/apache/poi/hpsf/Blob.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/hpsf/Blob.java b/src/java/org/apache/poi/hpsf/Blob.java
index a3421c2e0d..5ece25f327 100644
--- a/src/java/org/apache/poi/hpsf/Blob.java
+++ b/src/java/org/apache/poi/hpsf/Blob.java
@@ -1,8 +1,7 @@
package org.apache.poi.hpsf;
-import org.apache.poi.util.LittleEndian;
-
import org.apache.poi.util.Internal;
+import org.apache.poi.util.LittleEndian;
@Internal
class Blob
@@ -19,7 +18,7 @@ class Blob
return;
}
- _value = LittleEndian.getByteArray( _value, offset
+ _value = LittleEndian.getByteArray( data, offset
+ LittleEndian.INT_SIZE, size );
}