Question: I am receiving this error message when the user inputs the file path location: Attached is where my cipher line 67 is: I do not

I am receiving this error message when the user inputs the file path location:


Run: n HI  Cipher  Attached is where my cipher line 67 is:

49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 TranslationMatrix.java H D A D 0 } I do not believe I have a null in my translator class. But attached below is that class:


@ public class Translator { G  F A F E 9  /** * initializing the translation matrix */ @} } 3 usages private

 Where would I be missing the NULL for this error to be occurring? Or am I missing something entirely else?

Run: n HI Cipher "C:\Program Files\Java\jdk1.8.0_361\bin\java.exe" Select a cipher {1: Casesr, 2: Substitution, 3: Vigenere} : Enter the file path or 'quit' to exit the program: C:\Penn State\SWENG311\M11Assignment Out Resources fox.txt Exception in thread "main" java.lang.NullPointerException Create breakpoint at Translator. translated Text (Translator.java:30) at Cipher.main (Cipher.java:67) Process finished with exit code 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The NullPointerException youre encountering is happening at Translatorjava30 which is in your translatedTextString text method of the Translator class ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!