Your adapter wrapper is created all the time, even when I want to nullify adapter for a view, and thus the null pointer exception occurs when view through wrapper tries to call adapter method.
Otherwise adapter methods wouldn't be called. Just don't create wrapper when null is supplied, so view behaves correctly.
Your adapter wrapper is created all the time, even when I want to nullify adapter for a view, and thus the null pointer exception occurs when view through wrapper tries to call adapter method.
Otherwise adapter methods wouldn't be called. Just don't create wrapper when null is supplied, so view behaves correctly.