Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix use of not initialized variable (m_LiteralDecoder)

regerc2a88d53ab02
diff --git a/libbuild/J7Zip-modified/src/SevenZip/Compression/LZMA/Decoder.java b/libbuild/J7Zip-modified/src/SevenZip/Compression/LZMA/Decoder.java
index 66f86bdf0..422249a47 100644
--- a/libbuild/J7Zip-modified/src/SevenZip/Compression/LZMA/Decoder.java
+++ b/libbuild/J7Zip-modified/src/SevenZip/Compression/LZMA/Decoder.java
@@ -11,7 +11,6 @@ import java.io.InputStream;
import java.io.OutputStream;
import SevenZip.Compression.LZ.OutWindow;
-import SevenZip.Compression.LZMA.Base;
import SevenZip.Compression.RangeCoder.BitTreeDecoder;
public class Decoder extends InputStream implements ICompressCoder, ICompressGetInStreamProcessedSize,
@@ -71,7 +70,7 @@ public class Decoder extends InputStream implements ICompressCoder, ICompressGet
// Set lc, lp, pb
if (lc > Base.kNumLitContextBitsMax || lp > 4 || pb > Base.kNumPosStatesBitsMax)
throw new IllegalArgumentException("lc > Base.kNumLitContextBitsMax || lp > 4 || pb > Base.kNumPosStatesBitsMax");
- if (this.m_LiteralDecoder != null) throw new NullPointerException("LiteralDecoder != null, WTF?!");
+ // if (this.m_LiteralDecoder != null) throw new NullPointerException("LiteralDecoder != null, WTF?!"); // hint: skip use of not initialized static variable
this.m_LiteralDecoder = new LiteralDecoder(lp, lc);
int numPosStates = 1 << pb;
this.m_LenDecoder = new LenDecoder(numPosStates);