Skip to content

Commit

Permalink
fixed parsing trace message (when there is no ':' in message like for…
Browse files Browse the repository at this point in the history
… NullPointerException
  • Loading branch information
Aleksander Pyszny committed Oct 10, 2012
1 parent 92dc662 commit 9df00df
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -955,6 +955,8 @@ private String parseForMessage( String trace )
{
messageEnd = trace.indexOf( newline + "at" );
// match start of stack trace "\r\nat org.junit....."
if(messageStart > messageEnd) //':' wasn't found in message but in stack trace
messageStart = 0;
}
return trace.substring( messageStart, messageEnd );
}
Expand Down

0 comments on commit 9df00df

Please sign in to comment.