4 Replies Latest reply on Sep 13, 2007 5:36 AM by Pete Muir

    Null component in context?

    Thomas Frössman Newbie

      When our user isn't logged in (the useraccountId=null) this factory returns null,.. This null valued thing seems to exist as a component in conversations. The factory isn't run, @In just receives an null value.
      Any ideas?


       @Factory(autoCreate = true, scope = ScopeType.STATELESS, value = "userAccount")
       public UserAccount userAccountFactory() throws UserAccountDaoException {
      
       if (userAccountId != null) {
       log.info("userAccountFactory returning useraccount");
       return userAccountDao.load(userAccountId);
       } else {
       log.info("userAccountFactory returning null");
       return null;
       }
       }