Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-403

java client - navigation deletion error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • (Java) V4 4.0.0-beta-01
    • (Java) V4 4.0.0-beta-01
    • odata4-client
    • None

    Description

      Message msg2 = <new message...>;
      msg2.setId("key2_chh");
      container.getMe().getDrafts().getMessages().delete(msg2);
      -------------------------
      the .delete(msg2) will throw java.lang.NullPointerException:

      EntitySetInvocationHandler<T,KEY,EC>(AbstractInvocationHandler).deleteEntity(EntityInvocationHandler, URI) line: 151
      EntitySetInvocationHandler<T,KEY,EC>.delete(S) line: 262
      NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
      NativeMethodAccessorImpl.invoke(Object, Object[]) line: 57
      DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43
      Method.invoke(Object, Object...) line: 606
      EntitySetInvocationHandler<T,KEY,EC>(AbstractInvocationHandler).invokeSelfMethod(Method, Object[]) line: 92
      EntitySetInvocationHandler<T,KEY,EC>.invoke(Object, Method, Object[]) line: 91
      $Proxy18.delete(EntityType) line: not available
      -------------------------
      final String name = handler.getUUID().getType()
      .getAnnotation(org.apache.olingo.ext.proxy.api.annotations.EntityType.class)
      .name();
      -------------------------
      .getType() --> org.apache.olingo.ext.proxy.api.Annotatable
      .getAnnotation --> null

      Attachments

        Activity

          People

            fmartelli Fabio Martelli
            challenh Challen He
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: