Code Monkey home page Code Monkey logo

Comments (5)

mikepenz avatar mikepenz commented on May 26, 2024

@franciscofranco could you please post the code which caused this? I would really love to reproduce this on my side.

Seems really weird, as at this line there's nothing which could be null:
https://github.com/mikepenz/FastAdapter/blob/develop/library/src/main/java/com/mikepenz/fastadapter/FastAdapter.java#L570
(The mAdapterSizes is a TreeMap which get's never set to null)

Thank you so much.

from fastadapter.

mattiasbe avatar mattiasbe commented on May 26, 2024

Looks to me like the argument is null in your code @franciscofranco , not something in FastAdapter?
That line is just the first to try and use it as a primitive (auto unboxing).

from fastadapter.

mikepenz avatar mikepenz commented on May 26, 2024

@mattiasbe thanks for answering. And yes you are right. Just tried it and seems like the exact cause for this. Totally missed this.

bildschirmfoto 2016-02-27 um 15 55 09

from fastadapter.

franciscofranco avatar franciscofranco commented on May 26, 2024

Makes sense. I eventually changed my code and couldn't reproduce this anymore. I'm using an event bus to pass some stuff from inside the ViewHolder to another class, but I wasn't unregistering the object from the bus if the object was removed, so I was trying to remove a null object from the adapter.

Thanks & sorry for the false alarm, I just posted in case I stumbled into some weird bug that I wouldn't be able to reproduce sometime in the future :)

from fastadapter.

mikepenz avatar mikepenz commented on May 26, 2024

@franciscofranco ok great :). No problem.
As long as it works now :)

If you might have suggestions how to improve the `FastAdapter´ let me know

from fastadapter.

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.