Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-5

NullPointerExeption in BlossomDispatcherServlet while detecting DialogFactories

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.1.1
    • 1.1
    • None
    • None

    Description

      context.getType can be null the following fixes the detectDialogFactories Method

      private void detectDialogFactories() throws RepositoryException {
      WebApplicationContext context = getWebApplicationContext();
      String[] beanDefinitionNames = context.getBeanDefinitionNames();
      for (String beanDefinitionName : beanDefinitionNames) {
      Class<?> type = context.getType(beanDefinitionName);
      if (type!=null && type.isAnnotationPresent(DialogFactory.class))

      { BlossomModule.getDialogRegistry().registerDialogFactory(context.getBean(beanDefinitionName)); }

      }
      }

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmattsson Tobias Mattsson
              tom.kalmar Thomas Kalmar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - 0.5h
                    0.5h
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 0.5h
                    0.5h