Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1.1, KFS Release 3.0.1
    • Fix Version/s: 1.0.2.1, KFS Release 4.0
    • Component/s: Development
    • Labels:
      None
    • Similar issues:
      KULRICE-3602Handle null values consistently in KIM entity DTOs
      KULRICE-3786RuleMaintenanceActionRequestCodeValuesFinder not handling "null" rule option value appropriately
      KULRICE-4047UIDocumentServiceImpl.getMember() can return null but is not handled
      KULRICE-8387Determine better color values for validation message backgrounds to make messages more readable
      KULRICE-3343KimTypeServIveBase class has protected method which can return null but calling method is assuming non-null value
      KULRICE-8295Null handling in DocumentSearchCriteriaBo.groovy needs work
      KULRICE-1777Prevent exception when parameter value is null in UrlFactory.parameterizeUrl
      KULRICE-3102Nested lookups (and maybe forms in general) need to handle encrypted return values better
      KULRICE-6853Currency Format exception on Null values
      KULRICE-5413figure out how to handle collections being null on model objects when being unmarshalled
    • Rice Module:
      KNS
    • Application Requirement:
      KFS

      Description

      When getCodeAndDescription() is called on an empty object, this method returns "null - null". It should return a blank rather than exposing the java "null" string.

      The code below fixes the issue and provides a hook for non KualiCodeBase objects to use the same formatter for visual consistency.

      public String getCodeAndDescription()

      { return KualiCodeBase.getCodeAndDescription(getCode(), getName()); }

      public static String getCodeAndDescription(String code, String desc)
      {
      String ret = "";
      if ( code != null )
      {
      if ( desc == null )

      { ret = code; }

      else

      { ret = code + " - " + desc; }

      }
      return ret;
      }

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan Keller
            Reporter:
            Jonathan Keller
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel