Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-8486

NPE when you click on 'Export selected' without selecting anything on Manage End Entity Profile page

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.3.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 18
      Wildfly 14
      Executed on:
      Version : EJBCA 7.3.0.Alpha-SNAPSHOT Unreleased (working copy)
      Revision: 33176
    • Issue discovered during:
      Testing
    • Sprint:
      EJBCA Team Alice - 2019 w34

      Description

      Steps to reproduce:
      1. Click on End Entity Profiles
      2. Click on ' Export selected' button without selecting anything
      3. Results in 'An exception has occurred' error
      4. NPE in Application Server Log : Caused by: java.lang.NullPointerException
      at org.ejbca.ui.web.admin.endentityprofiles.EndEntityProfilesMBean.actionExportProfile(EndEntityProfilesMBean.java:331)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:181)
      at com.sun.el.parser.AstValue.invoke(AstValue.java:289)
      at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
      at org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
      at org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
      at org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
      at org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
      at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:107)
      at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
      ... 63 more

        Attachments

          Activity

            People

            Assignee:
            ML Martin Luik (Inactive)
            Reporter:
            ebrahim Ebrahim Shirvanian
            Verified by:
            Henrik Sunmark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: