RFR: 8303: NPE at org.openjdk.jmc.flightrecorder.rules.report.JfrRulesReport.addReport [v3]
Suchita Chaturvedi
schaturvedi at openjdk.org
Wed Dec 18 12:19:54 UTC 2024
On Thu, 12 Dec 2024 22:47:55 GMT, Marcus Hirt <hirt at openjdk.org> wrote:
>> core/org.openjdk.jmc.flightrecorder.rules/src/main/java/org/openjdk/jmc/flightrecorder/rules/report/JfrRulesReport.java line 332:
>>
>>> 330: itemsNode.appendChild(itemNode);
>>> 331: for (IMemberAccessor<?, IItem> a : accessors) {
>>> 332: if (a != null)
>>
>> Added this null check here to avoid further NPEs due to null accessors.
>
> This shouldn't happen normally. Should there be some logging so that we can discover if it does?
Added the logger
-------------
PR Review Comment: https://git.openjdk.org/jmc/pull/616#discussion_r1890143625
More information about the jmc-dev
mailing list