Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: ~[Archived] WCM
    • Labels:
      None

      Description

      LayoutLocalServiceHelper#validateName can throw NPE instead of the intended LNE in the following method:

       

       

      public void validateName(String name) throws PortalException {
         int maxLength = ModelHintsUtil.getMaxLength(
            Layout.class.getName(), "friendlyURL");
      
         if (name.length() > maxLength) {
            throw new LayoutNameException(LayoutNameException.TOO_LONG);
         }
      
         if (Validator.isNull(name)) {
            throw new LayoutNameException();
         }
      }
      

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 32 weeks, 6 days ago

                  Packages

                  Version Package
                  Master