Skip to content

NPE when processing open62541.h on Windows 7 (32 bit) #569

@point85

Description

@point85

There is an open source implementation of OPC UA in written C (http://open62541.org). The single header file called open62541.h (version 0.1 is available for download from their website) throws an NPE in Result.java (215) - see attached console output. The UA_WorkItem struct was being processed.
jnaerator_npe

I believe that the NPE is related to the empty UA_Server struct, because when I provide a dummy implementation of it (struct UA_Server { int i; };) in a header file that includes open62541.h, the NPE disappears.

Here's my config.jnaerator file:

-library Open62541
open62541.h
-mode Directory
-o .
-v
-runtime JNA
-arch win32
-emptyStructsAsForwardDecls

Note that I am using Microsoft Visual Studio 12 and Windows SDK version 7.1A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions