Skip to content

Commit c05fc44

Browse files
committed
Need to use returned value of substring()
1 parent b6e4e60 commit c05fc44

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tika-app/src/main/java/org/apache/tika/gui/TikaGUI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,9 +613,9 @@ private ImageSavingParser(Parser downstreamParser) {
613613
public File requestSave(String embeddedName) throws IOException {
614614
String suffix = ".tika";
615615

616-
int splitAt = embeddedName.lastIndexOf('.');
616+
int splitAt = ebeddedNamem.lastIndexOf('.');
617617
if (splitAt > 0) {
618-
embeddedName.substring(splitAt);
618+
ebeddedName = embeddedName.substring(splitAt);
619619
}
620620

621621
File tmp = Files

0 commit comments

Comments
 (0)