Skip to content

Comments

fix:"ClassLoader.getSystemResourceAsStream" NullPointException#471

Open
gdjicasonjakesic wants to merge 2 commits intosannies:masterfrom
Incode-Technologies-Example-Repos:fix/resources-path-null-pointer-option-2
Open

fix:"ClassLoader.getSystemResourceAsStream" NullPointException#471
gdjicasonjakesic wants to merge 2 commits intosannies:masterfrom
Incode-Technologies-Example-Repos:fix/resources-path-null-pointer-option-2

Conversation

@gdjicasonjakesic
Copy link

Fix: #449

Problem
org.mp4parser.muxer.container.mp4.MovieCreator.build(path) throws NPE
Root cause
InputStream is = ClassLoader.getSystemResourceAsStream("isoparser2-default.properties");
returns null.
Fixed by replacing with

ClassLoader cs = Thread.currentThread().getContextClassLoader();
InputStream is = classLoader.getResourceAsStream("isoparser2-default.properties");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MovieCreator.build(file) NullPointerException

1 participant