sbt, the interactive build tool
Go to file
Jason Zaugg f66830eed9 Fix NPE in task macro accessing q"{...}".symbol.pos
We shouldn't assume that the qualifier of a `Select` is a
`SymTree`; it may be a `Block`. One place that happens
is after the transformation of named/defaults applications.
That causes the reported `NullPointerException'.

In any case, using `qual.symbol.pos` sense here; it yields the
position of the defintions *referred to* by `qual`, not the
position of `qual` itself.

Both problems are easily fixed: use `qual.pos` instead.

Fixes #1107
2014-03-10 10:28:19 +01:00
util/appmacro/src/main/scala/sbt/appmacro Fix NPE in task macro accessing q"{...}".symbol.pos 2014-03-10 10:28:19 +01:00