Skip to content

Commit

Permalink
fix nil pointer issue (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
calmbeing authored May 4, 2023
1 parent f115ca4 commit 2fc4e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compress/decompress.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func (g *Getter) nextPos(clean bool) uint64 {
}
}
table := g.posDict
if table.bitLen == 0 {
if table != nil && table.bitLen == 0 {
return table.pos[0]
}
var l byte
Expand Down

0 comments on commit 2fc4e34

Please sign in to comment.