Skip to content

WARNING: Trying to wrap a null pointer in ‘newObject’, this may lead to crashes. #471

@amkhlv

Description

@amkhlv

Using taskNew from GI.Gio.Objects.Task in the following way:

taskNew (Nothing :: Maybe Object) (Nothing :: Maybe Cancellable) Nothing

leads to the following error message at runtime:

WARNING: Trying to wrap a null pointer in ‘newObject’, this may lead to crashes.

• Callstack for the unsafe call to ‘newObject’:
CallStack (from HasCallStack):
  newObject, called at ./GI/Gio/Callbacks.hs:1230:23 in gi-gio-2.0.37-Dn5ULPaCeDLBmH4QAzqMhX:GI.Gio.Callbacks

This is probably a bug in the introspection data,
please report it at https://github.com/haskell-gi/haskell-gi/issues

So, I am reporting it here, as instructed :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions