-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException from example - fresh windows install processing 4.3 #36
Comments
the workaround mentioned here seems to work... |
hi ✌️ i tried the examples, and apparently i fixed that problem in particular changing the parent of the MidiBus from 'this' to 'new java.lang.Object()'. |
There are other workarounds as shown below.
|
I had given up trying to find workaround for my NullPointerException problem when using Processing 4, and had gone back to Processing 3 until I found this simple workaround by fukuchi which works with Processing 4.3! In fact even the following simpler workaround works: In fact the single-line workaround suggested by AndresMartinM also works: It appears that the essence of this workaround is to not directly specify this sketch as the parent when initializing the MidiBus object! |
This worked only partial for me: After using this or other similar lines, MidiBus worked only for output. The solution for me was:
As mentioned here: |
I have run this example code on many installs of 4.3 using theMidiBus library from the package manager but on this particular system (windows 11 pro) I can't get the exmaple to run without a NullPointerException with no further information.
I tried downloading the latest library release manually but had the same problem.
The text was updated successfully, but these errors were encountered: