Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 266268e

Browse filesBrowse files
handle missing caller due to throws annotation
1 parent bb94bc5 commit 266268e
Copy full SHA for 266268e

File tree

1 file changed

+7
-5
lines changed
Filter options

1 file changed

+7
-5
lines changed

‎sqldev/src/main/java/org/utplsql/sqldev/model/runner/Expectation.xtend

Copy file name to clipboardExpand all lines: sqldev/src/main/java/org/utplsql/sqldev/model/runner/Expectation.xtend
+7-5Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Expectation extends AbstractModel {
2828
def getFailureText() {
2929
return '''
3030
«message.trim»
31-
«caller.trim»
31+
«caller?.trim»
3232
'''.toString.trim
3333
}
3434

@@ -38,10 +38,12 @@ class Expectation extends AbstractModel {
3838

3939
def getCallerLine() {
4040
var Integer line = null
41-
val p = Pattern.compile("(?i)\"[^\\\"]+\",\\s+line\\s*([0-9]+)")
42-
val m = p.matcher(caller)
43-
if (m.find) {
44-
line = Integer.valueOf(m.group(1))
41+
if (caller !== null) {
42+
val p = Pattern.compile("(?i)\"[^\\\"]+\",\\s+line\\s*([0-9]+)")
43+
val m = p.matcher(caller)
44+
if (m.find) {
45+
line = Integer.valueOf(m.group(1))
46+
}
4547
}
4648
return line
4749
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.