Skip to content
Create a gist now

Instantly share code, notes, and snippets.

yuitest-coverage NullPointerException on a simple js file
// 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);
module.exports = timeout;
// stack trace for NullPointerException
at at
at at
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.