提交 83ba5849 编写于 作者: S Serge Rider

Fixes

上级 dc7767d2
......@@ -33,7 +33,7 @@
</handler>
<handler commandId="org.jkiss.dbeaver.git.commands.commit" class="org.jkiss.dbeaver.team.git.ui.handlers.GITCommitHandler">
<activeWhen>
<test property="GitRepository.resourcesSingleRepository"/>
<test property="GitSelection.resourcesSingleRepository"/>
</activeWhen>
</handler>
</extension>
......
......@@ -114,7 +114,8 @@ public class EditorUtils {
if (element instanceof IEditorInput) {
IFile file = getFileFromInput((IEditorInput) element);
if (file != null) {
return file.getLocation().toFile();
IPath location = file.getLocation();
return location == null ? null : location.toFile();
}
if (element instanceof IURIEditorInput) {
final File localFile = new File(((IURIEditorInput) element).getURI());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册