Skip to content

Commit

Permalink
Add nullcheck for DASHISOParser
Browse files Browse the repository at this point in the history
Adds a nullcheck for parseBox in DASHISOParser
to avoid a nullpointer exception that has been
observed.
  • Loading branch information
Carl 4 Larsson authored and Jimmy Dahlqvist committed May 13, 2015
1 parent f94f19f commit 92dad53
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ private int parseBox12(BoxHeader nextHeader) {

@Override
protected boolean parseBox(BoxHeader header) {
if (header == null) {
return false;
}
if (header.boxType == BOX_ID_SUBS) {
int boxSize = (int)(header.boxHeaderSize + header.boxDataSize);
mSubs = new byte[(int)(header.boxHeaderSize + header.boxDataSize)];
Expand Down

0 comments on commit 92dad53

Please sign in to comment.