Uploaded image for project: 'XCarousel'
  1. XCarousel
  2. XCAROUSEL-11

When one of the slides does not have have an image attached, a velocity error appears

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.2
    • 1.1
    • None
    • Unknown

    Description

      The following velocity error is displayed when one of the slides does not have an image attached.

      Caused by: java.lang.IllegalArgumentException: An Entity Reference name cannot be null or empty
      	at org.xwiki.model.reference.EntityReference.setName(EntityReference.java:187)
      	at org.xwiki.model.reference.EntityReference.<init>(EntityReference.java:155)
      	at org.xwiki.model.reference.AttachmentReference.<init>(AttachmentReference.java:68)
      	at com.xpn.xwiki.XWiki.getAttachmentURL(XWiki.java:4703)
      	at com.xpn.xwiki.XWiki.getAttachmentURL(XWiki.java:4693)
      	at com.xpn.xwiki.api.XWiki.getAttachmentURL(XWiki.java:1802)
      	at sun.reflect.GeneratedMethodAccessor704.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
      	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
      	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
      	... 175 more 

      Expected result: the carousel should still work even with a missing image

      Attachments

        Activity

          People

            ppantiru Paul Pantiru
            ppantiru Paul Pantiru
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: