Recent

Author Topic: Crash en jListView with a JEditText widged  (Read 1072 times)

Thyphoon

  • New Member
  • *
  • Posts: 37
Crash en jListView with a JEditText widged
« on: July 21, 2020, 07:48:08 pm »
I posted this in issues at the proyect github page but there was no response, so I think maybe if I posted it here it will get more attention:

https://github.com/jmpessoa/lazandroidmodulewizard/issues/213

If I use jListView with a JEditText widged and the list of items exeeds 10 items then the app crashes.

The app returns this line in logcat:

AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getId()' on a null object reference

if the items in the jListView are less than 10 this error doesn't occurs

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Crash en jListView with a JEditText widged
« Reply #1 on: July 22, 2020, 03:45:57 am »

I do some tests here... and I dont got this error....

Can you put a simple [example] project in an open drive?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Thyphoon

  • New Member
  • *
  • Posts: 37
Re: Crash en jListView with a JEditText widged
« Reply #2 on: July 24, 2020, 10:40:55 pm »
Sure!

here it is:

https://drive.google.com/file/d/1qKlyz2DQ5IL67Zad0cU4NthaeRvn5zWg/view?usp=sharing

If you touch one of the jedittext and try to write in it, the app crashes.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: Crash en jListView with a JEditText widged
« Reply #3 on: July 25, 2020, 02:41:54 am »
Ok. I will try it!

Thank you!

[edited: Fixed! in "jListView.java"
« Last Edit: July 25, 2020, 04:23:31 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Thyphoon

  • New Member
  • *
  • Posts: 37
Re: Crash en jListView with a JEditText widged
« Reply #4 on: July 29, 2020, 10:31:39 pm »
Thank you!

 

TinyPortal © 2005-2018