diff options
author | Sergey Vladimirov <sergey@apache.org> | 2011-10-22 01:57:24 +0000 |
---|---|---|
committer | Sergey Vladimirov <sergey@apache.org> | 2011-10-22 01:57:24 +0000 |
commit | 5005fe6ce00079777951d10eb432bc0e1612af66 (patch) | |
tree | 11b02b0182a2f86573f5524af112f899000150c3 /src/java/org/apache/poi/hpsf | |
parent | e1424086c30d75985b771cee16ecb40d7d9fc477 (diff) | |
download | poi-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.java | 5 |
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 ); } |