To reproduce:
Run MidiKeyboard on a device that does not have the MIDI feature.
(Not sure how that can happen. Maybe it was side loaded by an OEM.)
Then Click one of the Program buttons.
EXPECT: no response
ACTUAL:
Caused by: java.lang.NullPointerException:
at com.mobileer.midikeyboard.MainActivity.midiSend (MainActivity.java:176)
at com.mobileer.midikeyboard.MainActivity.midiCommand (MainActivity.java:157)
at com.mobileer.midikeyboard.MainActivity.onProgramSend (MainActivity.java:111)
To reproduce: Run MidiKeyboard on a device that does not have the MIDI feature. (Not sure how that can happen. Maybe it was side loaded by an OEM.) Then Click one of the Program buttons.
EXPECT: no response
ACTUAL: Caused by: java.lang.NullPointerException: at com.mobileer.midikeyboard.MainActivity.midiSend (MainActivity.java:176) at com.mobileer.midikeyboard.MainActivity.midiCommand (MainActivity.java:157) at com.mobileer.midikeyboard.MainActivity.onProgramSend (MainActivity.java:111)