Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NullPointerException on structure field getter #411

@operutka

Description

@operutka

Hi,
I got this exception on read from structure field with type Pointer<Pointer<?>>. I use BridJ 0.7-SNAPSHOT. Here is my call stack:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at org.bridj.util.DefaultParameterizedType.hashCode(DefaultParameterizedType.java:97)
    at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
    at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:988)
    at org.bridj.PointerIO.getInstance(PointerIO.java:147)
    at org.bridj.Pointer.getPointerAtOffset(Pointer.java:4015)
    at org.bridj.StructIO.getPointerField(StructIO.java:197)
    at org.libav.avformat.bridge.AVFormatContext54.chapters(AVFormatContext54.java:348)
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions