On Thu, 28 Jul 2022 11:47:03 GMT, Tejesh R <[email protected]> wrote:

> `DebugGraphics` class has a Graphics instance which is been used in slowed 
> down drawing. The `graphics` object is not initialized anywhere inside the 
> class, where it is expected to set explicitly by the user. When the user 
> doesn't set it and try to use the any mehtods like `drawing/setFont`, NPE is 
> raised which is expected. The scenario is taken care by checking if the 
> `graphics` object is null before using it inside the class, thus eliminating 
> the NPE case.

This pull request has now been integrated.

Changeset: 21f4eb22
Author:    Tejesh R <[email protected]>
Committer: Prasanta Sadhukhan <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/21f4eb2233a95be44a5db59b7791cd952ddbd56e
Stats:     64 lines in 2 files changed: 64 ins; 0 del; 0 mod

6521141: DebugGraphics NPE @ setFont();

Reviewed-by: prr

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

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

Reply via email to