Uploaded image for project: 'Apache InLong'
  1. Apache InLong
  2. INLONG-138

Optimize core module test case code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Low
    • Resolution: Fixed
    • None
    • 0.5.0
    • None

    Description

      1. Optimize the use of assertions
      2. Fix possible null pointer exception

      SSLEngine sslEngine = null;
      try {
          // create engine
          sslEngine = TSSLEngineUtil.createSSLEngine(keyStorePath, trustStorePath,
          keyStorePassword, trustStorePassword, true, false);
      } catch (Throwable e) {
          e.printStackTrace();
      }
      // If the above code is a field, it may cause the object sslEngine is null
      boolean needClientAuth = sslEngine.getNeedClientAuth();
      

      Attachments

        Activity

          People

            viviel viviel
            viviel viviel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m