Skip to content

Commit

Permalink
Fix IDE link in error page
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Kruger <[email protected]>
  • Loading branch information
phillip-kruger authored and bschuhmann committed Nov 16, 2024
1 parent 8593668 commit 17fa07e
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,16 +250,15 @@ public TemplateHtmlBuilder stack(final Throwable throwable, List<String> knowCla

for (int i = 0; i < stackTrace.length; ++i) {
var elem = stackTrace[i];

className = elem.getClassName();
String filename = elem.getFileName();
if (filename != null) {
int dotindex = filename.lastIndexOf(".");
type = elem.getFileName().substring(dotindex + 1);
}
lineNumber = elem.getLineNumber();

if (knowClasses.contains(elem.getClassName())) {
className = elem.getClassName();
String filename = elem.getFileName();
if (filename != null) {
int dotindex = filename.lastIndexOf(".");
type = elem.getFileName().substring(dotindex + 1);
}
lineNumber = elem.getLineNumber();

stackTrace[i] = new StackTraceElement(elem.getClassLoaderName(), elem.getModuleName(),
elem.getModuleVersion(),
BRSTI + elem.getClassName()
Expand Down

0 comments on commit 17fa07e

Please sign in to comment.