During IDEA plugin development, when JBR21 is used to execute the following code, the getter obtained is null. However, before JBR21, the getter has a value. The details are as follows:
VcsLogManager logManager = VcsProjectLog.getInstance(project).getLogManager();
if (logManager == null) {
return;
}
VcsLogData dataManager = logManager.getDataManager();
IndexDataGetter getter = dataManager.getIndex().getDataGetter();
if (getter == null) { // getter property is null after Jbr17
return;
}
Function description: Displays the last commit information of the current code at the end of the editor code line of IDEA,As shown in the figure:
The current 2024.1 version functions properly:Build #IU-241.18034.62, built on June 21, 2024
This problem occurs in 2024.3 and later versions:Build #IU-243.23654.189, built on January 29, 2025