I got a while i call the build method, just like below, can anybody help
public static void startTrim(File src, File dst, int startMs, int endMs) throws IOException { FileDataSourceImpl file = new FileDataSourceImpl(src); Movie movie = MovieCreator.build(file); // here i got the NullPointerException // remove all tracks we will create new tracks from the old List<Track> tracks = movie.getTracks(); movie.setTracks(new LinkedList<Track>());
I got a while i call the build method, just like below, can anybody help
public static void startTrim(File src, File dst, int startMs, int endMs) throws IOException { FileDataSourceImpl file = new FileDataSourceImpl(src); Movie movie = MovieCreator.build(file); // here i got the NullPointerException // remove all tracks we will create new tracks from the old List<Track> tracks = movie.getTracks(); movie.setTracks(new LinkedList<Track>());