sparks / themidibus

A simple MIDI Library for Processing
http://www.smallbutdigital.com/themidibus.php
GNU Lesser General Public License v3.0
177 stars 37 forks source link

Processing 4 - nullPointerException #30

Closed mrbbp closed 2 years ago

mrbbp commented 2 years ago

Hello

i have some prob with thge lib on processing 4b2

import themidibus.*; //Import the library

MidiBus myBus; // The MidiBus

void setup() {
  size(400, 400);
  background(0);

  MidiBus.list(); // List all available Midi devices on STDOUT. This will show each device's index and name.
  myBus = new MidiBus(this, 0, 1);
}

this code work fine on Processing 3.5.3 on macos 10.15.7

But does not works on Processing 4b2 on macos 10.15.7

the code generate a nullPointerException error when initialise myBus = MidiBus(this,0,1)

Capture d’écran 2021-12-05 à 19 13 11

five nullPointerException as my 5 inout! is it a start point for debugging?

regards

éric

sparks commented 2 years ago

Hi @mrbbp this should be fixed as of yesterday, please update your library in the library manager to version 9. You may have to uninstall and reinstall the library if it doesn't show the update yet.

Let me know if the issue persists in version 9 for you

mrbbp commented 2 years ago

Great, thanks. It works as espected.

regards