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 <phillip.kruger@gmail.com>
  • Loading branch information
phillip-kruger committed Aug 30, 2024
1 parent 3ba42a4 commit bf6ad30
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 bf6ad30

Please sign in to comment.