Skip to content

Commit

Permalink
Check optional parameters to set appropriate use_parameters param for
Browse files Browse the repository at this point in the history
the symbolic_proguardmapper_remap_frame function
  • Loading branch information
viglia committed Nov 17, 2023
1 parent 1e14beb commit d0f82f0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions py/symbolic/proguard.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import annotations
from typing import Tuple
from typing import Optional, Tuple

import uuid as uuid_mod

Expand Down Expand Up @@ -85,17 +85,16 @@ def remap_frame(
klass: str,
method: str,
line: int,
parameters: str = "",
use_parameters: bool = False,
parameters: Optional[str] = None,
) -> list[JavaStackFrame]:
"""Remaps the stackframe, given its class, method and line."""
result = self._methodcall(
lib.symbolic_proguardmapper_remap_frame,
encode_str(klass),
encode_str(method),
line,
encode_str(parameters),
use_parameters,
encode_str("" if parameters is None else parameters),
parameters is not None,
)

frames = []
Expand Down

0 comments on commit d0f82f0

Please sign in to comment.