Skip to content

Commit

Permalink
[0.77] Fix RN-Tester JSC instacrashing (#48417)
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico authored Dec 31, 2024
1 parent bb9d7ad commit 17a5d2b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,12 @@ public static JavaOnlyMap convertParsedError(ParsedError error) {
List<ReadableMap> readableMapList = new ArrayList<>();
for (ParsedError.StackFrame frame : frames) {
JavaOnlyMap map = new JavaOnlyMap();
map.putDouble(COLUMN_KEY, frame.getColumn());
map.putDouble(LINE_NUMBER_KEY, frame.getLineNumber());
if (frame.getColumn() != null) {
map.putDouble(COLUMN_KEY, frame.getColumn());
}
if (frame.getLineNumber() != null) {
map.putDouble(LINE_NUMBER_KEY, frame.getLineNumber());
}
map.putString(FILE_KEY, (String) frame.getFile());
map.putString(METHOD_NAME_KEY, (String) frame.getMethodName());
readableMapList.add(map);
Expand Down

0 comments on commit 17a5d2b

Please sign in to comment.