Comments (5)
Thanks for the detailed report! I'll take a look into this and see what's going wrong
from deckbox.
Confirmed. It happens on my Samsung Galaxy S8 as well. Imports fine, but crashes when I try to open the decklist.
from deckbox.
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.
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.
Fixed by #141
from deckbox.
Related Issues (20)
- [ENHANCMENT] Migrate Marketplace/Pricing feature off of Firebase HOT 1
- [FEATURE] Energy Calculator HOT 3
- Limit the cards in 'Search' when adding to a deck to only show cards in your collection. HOT 1
- Add ability to import decks directly from Limitless TCG
- [FEATURE] Export partial or entire collection
- [MISSING CARD] SwSh Black Star Promos/ SwSh Secret Rares/Rebel Clash Secret Rares HOT 2
- [FEATURE] Add Cards To Deck Directly From Collection
- [BUG] Deck tags allow me to add empty tags HOT 1
- [BUG] Swipe sensitivity between tabs is too high HOT 1
- [FEATURE] Add an UNLIMITED format or an option to globally remove all warnings/errors in deck building HOT 2
- [FEATURE] Custom format/banlist editor HOT 1
- [MISSING CARDS] Is this app dead? What about fixing bugs, add new sets etc.? HOT 1
- [MISSING CARD] HOT 1
- Astral Radiance is Missing HOT 4
- [BUG] I can't find any energy card
- Dependency Dashboard
- Ktor Backend
- Deck name textField dosent write correctley HOT 1
- missing card HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deckbox.