Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #128 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
timurstrekalov committed May 2, 2015
2 parents 41a63f7 + a5dfc92 commit ae7532e
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 ae7532e

Please sign in to comment.