Fix making Problems from AetherProblems with no range

This commit is contained in:
Phoenix Eliot 2016-08-31 14:35:50 -07:00
parent 663c220eaf
commit e0dafc571a

View file

@ -14,7 +14,7 @@ module.exports = class Problem
{ @lineMarkerRange, @textMarkerRange } = @buildMarkerRangesFromAetherProblem(@aetherProblem) if isCast
{ @level, @range, @message, @hint, @userInfo } = @aetherProblem
{ @row, @column: col } = @aetherProblem.range?[0]
{ @row, @column: col } = @aetherProblem.range?[0] or {}
@createdBy = 'aether'
else
unless userCodeHasChangedSinceLastCast