Skip to content

Commit

Permalink
FileName is optional in StacktraceElement
Browse files Browse the repository at this point in the history
  • Loading branch information
s1monw authored and szroland committed Jun 30, 2015
1 parent b1d8689 commit 40ea75d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public static <T extends Throwable> T readStackTrace(T throwable, StreamInput in
StackTraceElement[] stackTrace = new StackTraceElement[stackTraceElements];
for (int i = 0; i < stackTraceElements; i++) {
final String declaringClasss = in.readString();
final String fileName = in.readString();
final String fileName = in.readOptionalString();
final String methodName = in.readString();
final int lineNumber = in.readVInt();
stackTrace[i] = new StackTraceElement(declaringClasss,methodName, fileName, lineNumber);
Expand All @@ -388,7 +388,7 @@ public static <T extends Throwable> T writeStackTraces(T throwable, StreamOutput
out.writeVInt(stackTrace.length);
for (StackTraceElement element : stackTrace) {
out.writeString(element.getClassName());
out.writeString(element.getFileName());
out.writeOptionalString(element.getFileName());
out.writeString(element.getMethodName());
out.writeVInt(element.getLineNumber());
}
Expand Down

0 comments on commit 40ea75d

Please sign in to comment.