Skip to content

Commit

Permalink
Merge pull request #1 from jbrey/null-pointer-exception-linked-list
Browse files Browse the repository at this point in the history
Random empty report with Jasmine and PhantomJS
  • Loading branch information
jbrey committed Apr 23, 2015
2 parents 1615b6c + a5dfc92 commit 1e1b8bd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.google.common.io.CharStreams;
import com.google.common.io.Files;
import com.google.common.io.InputSupplier;
import java.util.Collections;
import net.sourceforge.htmlunit.corejs.javascript.Parser;
import net.sourceforge.htmlunit.corejs.javascript.ast.AstRoot;
import org.codehaus.plexus.util.FileUtils;
Expand All @@ -51,7 +52,7 @@ public final class HtmlUnitBasedScriptInstrumenter implements ScriptInstrumenter
private static final Set<URI> writtenToDisk = Sets.newHashSet();

private final Config config;
private final List<ScriptData> scriptDataList = Lists.newLinkedList();
private final List<ScriptData> scriptDataList = Collections.synchronizedList( Lists.<ScriptData>newLinkedList() );
private Collection<Pattern> ignorePatterns;
private File instrumentedFileDirectory;

Expand Down

0 comments on commit 1e1b8bd

Please sign in to comment.