From 52457da85631196331198a577dfc10605ae906d2 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Sat, 22 Oct 2011 01:57:24 +0000 Subject: [PATCH] fix NPE git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187633 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hpsf/Blob.java | 5 ++--- 1 file 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 a3421c2e0..5ece25f32 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 ); }