Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-4053

Return value from Connection should be checked against null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

      In RMQSource.java and RMQSink.java, there is code in the following pattern:

            connection = factory.newConnection();
            channel = connection.createChannel();
      

      According to https://www.rabbitmq.com/releases/rabbitmq-java-client/current-javadoc/com/rabbitmq/client/Connection.html#createChannel() :

      Returns:
      a new channel descriptor, or null if none is available
      

      The return value should be checked against null.

      Attachments

        Issue Links

          Activity

            People

              ivan.mushketyk Ivan Mushketyk
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: