Skip to content

Sound library fails in Android mode on M4 mac(Tahoe 26.5) #782

Description

@vsquared

To reproduce run source code with an imported sound library:
import processing.sound.*;

The following error message is generated on my system (macOS Tahoe 26.5 M4 chip) using Processing 4.5.6 in Android mode:
Build folder: /var/folders/x2/hwxvmv9s6t16_tkw9tgmbp040000gn/T/android785449008688983585sketch Exception in thread "Thread-144" java.lang.NullPointerException: Cannot read the array length because "list" is null at processing.app.Library.wrapFiles(Library.java:429) at processing.app.Library.getApplicationExports(Library.java:439) at processing.mode.android.AndroidBuild.copyImportedLibs(AndroidBuild.java:839) at processing.mode.android.AndroidBuild.createAppModule(AndroidBuild.java:481) at processing.mode.android.AndroidBuild.createProject(AndroidBuild.java:262) at processing.mode.android.AndroidBuild.build(AndroidBuild.java:223) at processing.mode.android.AndroidMode.handleRunDevice(AndroidMode.java:294) at processing.mode.android.AndroidEditor$17.run(AndroidEditor.java:421)

Possible solution: Generate "list" in sound library with an empty array so that it cannot be "null".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions