Skip to content

Commit

Permalink
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -41,15 +41,25 @@ private void write(Method method) {

final String sourceName;

if (sourceSection.getSource() == null) {
if (sourceSection == null || sourceSection.getSource() == null) {
sourceName = "(unknown)";
} else {
sourceName = sourceSection.getSource().getName();
}

final int startLine;

if (sourceSection == null) {
startLine = -1;
} else {
startLine = sourceSection.getStartLine();
}

final int endLine;

if (sourceSection.getSource() == null) {
if (sourceSection == null) {
endLine = -1;
} else if (sourceSection.getSource() == null) {
endLine = sourceSection.getStartLine();
} else {
endLine = sourceSection.getEndLine();
@@ -59,7 +69,7 @@ private void write(Method method) {
ids.getId(method),
sharedInfo.getName(),
sourceName,
sourceSection.getStartLine(),
startLine,
endLine);

for (CallSite callSite : method.getCallSites().values()) {

0 comments on commit aec8314

Please sign in to comment.