Giter Site home page Giter Site logo

Comments (5)

r0adkll avatar r0adkll commented on June 23, 2024 1

Thanks for the detailed report! I'll take a look into this and see what's going wrong

from deckbox.

mmxxiii avatar mmxxiii commented on June 23, 2024

Confirmed. It happens on my Samsung Galaxy S8 as well. Imports fine, but crashes when I try to open the decklist.

from deckbox.

mmxxiii avatar mmxxiii commented on June 23, 2024

Simplified import which crashes the app:

****** DeckBox Crash List ******

##Pokémon - 5

* 1 Oddish JU 58
* 1 Oddish HL 68
* 1 Oddish EX 122
* 1 Oddish UNB 5
* 1 Oddish UNB 6
* 1 Gloom UNB 7

##Trainer Cards - 0

##Energy - 0


Total Cards - 5

****** Deck List Generated by DeckBox ******

Anytime there are more that 5 different cards of the previous evolution of a pokemon, it crashes with the same error.

from deckbox.

phated avatar phated commented on June 23, 2024

The issue seems to be the use of parent.getChildAt with a RecyclerView, which returns null if the item is outside of a "row"

I found this on stack overflow:

When there is more than one page of data in your recycler view and you're using getChildAt() method, it will throw a null pointer exception. This is because when the position is greater than the number of visible items on the display, getChildAt() won't work as it can only get to the view that is displayed on the screen.

Therefore, use recyclerView.layoutManager?.findViewByPosition(position) to get the view at the given position.

from deckbox.

phated avatar phated commented on June 23, 2024

Fixed by #141

from deckbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.