Skip to content

null pointer exception when loading image in settings() Processing 4.0a2 #150

@processing-bot

Description

@processing-bot

Created by: x13420x

worked fine in 4.0a1....there has been issues in the pást with this size(paint.width, paint.height) but the error is actually thrown one line before

PImage paint;

void settings(){

paint = loadImage("ericarose.png"); 
size(paint.width, paint.height);
noSmooth();}

void setup(){

image(paint,0,0);
background(paint);}
void draw(){}

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