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

NullPointerExeption in BlossomDispatcherServlet while detecting DialogFactories

XMLWordPrintable

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

      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)); }

      }
      }

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

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