RFR: 6521141: DebugGraphics NPE @ setFont(); [v9]

Tejesh R tr at openjdk.org
Mon Aug 8 15:54:31 UTC 2022


On Mon, 8 Aug 2022 12:05:51 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> Tejesh R has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Updated based on review comments
>
> src/java.desktop/share/classes/javax/swing/DebugGraphics.java line 89:
> 
>> 87: 
>> 88:         //  Creates a Graphics context when the constructor is called.
>> 89:         if (graphics == null) {
> 
> Probably it will be better to use `this.graphics` here and below while setting.

Updated @prsadhuk .

-------------

PR: https://git.openjdk.org/jdk/pull/9673



More information about the client-libs-dev mailing list