Permalink
Browse files

More robust hyperlink tests for the presentation compiler

Report null symbols in an civilised manner, rather than with a NPE.
  • Loading branch information...
1 parent 4e4c151 commit 7e0eee211fee8958e93fad646846f1df0405d499 @retronym retronym committed with xeno-by Dec 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/interactive/scala/tools/nsc/interactive/tests/core/CoreTestDefs.scala
@@ -94,7 +94,7 @@ private[tests] trait CoreTestDefs
askAllSources(HyperlinkMarker) { pos =>
askTypeAt(pos)(NullReporter)
} { (pos, tree) =>
- if(tree.symbol == compiler.NoSymbol) {
+ if(tree.symbol == compiler.NoSymbol || tree.symbol == null) {
reporter.println("\nNo symbol is associated with tree: "+tree)
}
else {

1 comment on commit 7e0eee2

Job pr-scala failed for 7e0eee2 Took 81 min. (ping @xeno-by) (results):


To retry exactly this commit, comment "PLS REBUILD/pr-scala@7e0eee211fee8958e93fad646846f1df0405d499" on PR 3342.
NOTE: New commits are rebuilt automatically as they appear. A forced rebuild is only necessary for transient failures.

Please sign in to comment.