Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BinaryLoader.tsx:233 Uncaught TypeError: Cannot read properties of undefined (reading 'trim') #453

Open
milahu opened this issue Feb 14, 2023 · 0 comments

Comments

@milahu
Copy link

milahu commented Feb 14, 2023

when the input is empty and i click the top-left blue button, the js console shows

error

BinaryLoader.tsx:233 Uncaught TypeError: Cannot read properties of undefined (reading 'trim')
    at t.set_target_app (BinaryLoader.tsx:233:44)
    at t.click_set_target_app (BinaryLoader.tsx:196:10)

source

set_target_app() {
let user_input = this.state.user_input.trim();
if (user_input === "") {
Actions.add_console_entries(
"input cannot be empty",
constants.console_entry_type.GDBGUI_OUTPUT
);
return;
}

fix

the condition should be

if (!this.state.user_input)

env

  • OS:
  • gdbgui version (gdbgui -v): 0.15.0.1-unstable-2022-06-22 = source build from 9138473
  • gdb version (gdb -v):
  • browser [e.g. chrome, safari]:
  • python packages (pip freeze):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant