junrar-android icon indicating copy to clipboard operation
junrar-android copied to clipboard

NullPointerException in UnrarHeadertype

Open cxMax opened this issue 6 years ago • 0 comments

  • situation : when decompress .rar file in andorid . I determine whether the .rar file is valid. I use the below codes.
public boolean isValid() {
        return mArchive != null && mArchive.getMainHeader() != null;
}
  • problem : unfortunately, mArchive.getMainHeader() return null. because there is a NullPoniterException Occured in Archive.java line.248/251.

in UnrarHeadertype.java , when headerType = 3 ; UnrarHeadertype.findType(3) returns null; i'm confused about how to resolve it , can you help me ? thx a lot.

cxMax avatar Apr 25 '18 11:04 cxMax