java help needed
Go to solution
Solved by Nuluvius,
9 minutes ago, RNGesusHatesMe said:@Nuluvius not sure how but isnt it fine using paste bin (it keeps its formating)
I just can't really be bothered to go chasing links... fine whatever.
The most glaringly obvious candidate is this particular line (#23):
this.Note = Note;
What are you hoping to accomplish with that? You are assigning the instance to itself and it has not been instantiated thus it will have a default value of null. You later operate upon this uninitialized variable in your actionPerformed method:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at RightClickMenu.actionPerformed(RightClickMenu.java:81)
Which the first two lines of your stack trace is telling you...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now