From b6bc592310b58ac2d7475c3b1b72758d28307b14 Mon Sep 17 00:00:00 2001 From: Karl Mortensen Date: Mon, 6 Jun 2016 16:35:23 -0400 Subject: [PATCH] Avoid possible Missing Resource Exception --- Core/src/org/sleuthkit/autopsy/datamodel/FileNode.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/FileNode.java b/Core/src/org/sleuthkit/autopsy/datamodel/FileNode.java index 8b54e5a7b6..255266c854 100755 --- a/Core/src/org/sleuthkit/autopsy/datamodel/FileNode.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/FileNode.java @@ -80,17 +80,17 @@ public class FileNode extends AbstractFsContentNode { public Action[] getActions(boolean popup) { List actionsList = new ArrayList<>(); if (!this.getDirectoryBrowseMode()) { - actionsList.add(new ViewContextAction(NbBundle.getMessage(this.getClass(), "FileNode.viewFileInDir.text"), this)); + actionsList.add(new ViewContextAction(NbBundle.getMessage(FileNode.class, "FileNode.viewFileInDir.text"), this)); actionsList.add(null); // creates a menu separator } actionsList.add(new NewWindowViewAction( - NbBundle.getMessage(this.getClass(), "FileNode.getActions.viewInNewWin.text"), this)); + NbBundle.getMessage(FileNode.class, "FileNode.getActions.viewInNewWin.text"), this)); actionsList.add(new ExternalViewerAction( - NbBundle.getMessage(this.getClass(), "FileNode.getActions.openInExtViewer.text"), this)); + NbBundle.getMessage(FileNode.class, "FileNode.getActions.openInExtViewer.text"), this)); actionsList.add(null); // creates a menu separator actionsList.add(ExtractAction.getInstance()); actionsList.add(new HashSearchAction( - NbBundle.getMessage(this.getClass(), "FileNode.getActions.searchFilesSameMD5.text"), this)); + NbBundle.getMessage(FileNode.class, "FileNode.getActions.searchFilesSameMD5.text"), this)); actionsList.add(null); // creates a menu separator actionsList.add(AddContentTagAction.getInstance()); actionsList.addAll(ContextMenuExtensionPoint.getActions());