Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iUeX8-00083D-Ot for pgsql-jdbc@arkaria.postgresql.org; Tue, 12 Nov 2019 22:21:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iUeX7-0005OO-GV for pgsql-jdbc@arkaria.postgresql.org; Tue, 12 Nov 2019 22:21:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iUeX7-0005Nf-4g for pgsql-jdbc@lists.postgresql.org; Tue, 12 Nov 2019 22:21:09 +0000 Received: from out-20.smtp.github.com ([192.30.252.203]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iUeX4-0000bx-Na for pgsql-jdbc@lists.postgresql.org; Tue, 12 Nov 2019 22:21:07 +0000 Received: from github-lowworker-edec459.ac4-iad.github.net (github-lowworker-edec459.ac4-iad.github.net [10.52.18.32]) by smtp.github.com (Postfix) with ESMTP id 044AC8C0D78 for ; Tue, 12 Nov 2019 14:21:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1573597266; bh=AM4fxdc3tWjBz4+mtG+Bm3+/eBr43Wx8S9zEzUx7Bz8=; h=Date:From:To:Subject:From; b=SLThgHwz5nxpfGaqIvC7pfNBGtMUdlksu0vHzU0NPaHzf6qFDUD+sA6qbPOrNxh6d BmK3/nz3oyYiMMnZyqE/N8V4LIkjTidkjBwyIKNF1fJC+CxN4P/hR9VR2vCj2LPA0L Iex+iEZanC4aKabMSOTZxucLFccl9DvuJrbY3Ptc= Date: Tue, 12 Nov 2019 14:21:05 -0800 From: Igor Volkov To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 539a09: Fix exception on PGCopyOutputStream.close() after ... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 539a09258f6009581785474fe5f15a46992ade6f https://github.com/pgjdbc/pgjdbc/commit/539a09258f6009581785474fe5f15a46992ade6f Author: Igor Volkov <1859437+virtual-machinist@users.noreply.github.com> Date: 2019-11-12 (Tue, 12 Nov 2019) Changed paths: M pgjdbc/src/main/java/org/postgresql/copy/PGCopyOutputStream.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/CopyTest.java Log Message: ----------- Fix exception on PGCopyOutputStream.close() after endCopy() (#1574) (#1575) * Fix: check if active before close() (#1574) * Fix: NPEs on flush() and isActive() if copy has ended * Tests for close(), flush(), isActive()