Created
June 29, 2011 22:54
-
-
Save anonymous/1055205 to your computer and use it in GitHub Desktop.
yuitest-coverage NullPointerException on a simple js file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// timeout.js that caused yuitest-coverage to throw NullPointerException | |
const DEFAULT_TIMEOUT = 10 * 60 * 1000; | |
function timeout(request, response, next) { | |
var config = request.context.config; | |
request.connection.setTimeout(config.connection_timeout || DEFAULT_TIMEOUT); | |
next(); | |
} | |
module.exports = timeout; | |
// stack trace for NullPointerException | |
java.lang.NullPointerException | |
at com.yahoo.platform.yuitest.coverage.ES3YUITestParser.program(ES3YUITestParser.java:7062) | |
at com.yahoo.platform.yuitest.coverage.JavaScriptInstrumenter.instrument(JavaScriptInstrumenter.java:105) | |
at com.yahoo.platform.yuitest.coverage.FileInstrumenter.instrument(FileInstrumenter.java:96) at com.yahoo.platform.yuitest.coverage.FileInstrumenter.instrument(FileInstrumenter.java:60) | |
at com.yahoo.platform.yuitest.coverage.DirectoryInstrumenter.instrument(DirectoryInstrumenter.java:65) at com.yahoo.platform.yuitest.coverage.YUITestCoverage.main(YUITestCoverage.java:91) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment