Skip to content

Commit 43658c1

Browse files
committed
fix: fixed potential NPE is there is no selected project
1 parent c659002 commit 43658c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/nvs/dialog/NvsCsvEditorPage.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
import com.espressif.idf.core.util.NvsPartitionGenerator;
5858
import com.espressif.idf.core.util.NvsTableDataService;
5959
import com.espressif.idf.core.util.StringUtil;
60-
import com.espressif.idf.ui.EclipseUtil;
6160

6261
/**
6362
* Manages the UI controls and logic for the NVS CSV Editor. This class is instantiated by NvsEditor and contains the UI
@@ -742,8 +741,7 @@ private void getGeneratePartitionAction()
742741

743742
try
744743
{
745-
EclipseUtil.getSelectedProjectInExplorer().refreshLocal(IResource.DEPTH_INFINITE,
746-
new NullProgressMonitor());
744+
csvFile.getProject().refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
747745
}
748746
catch (CoreException e)
749747
{

0 commit comments

Comments
 (0)