Zummy Posted April 30, 2019 Posted April 30, 2019 Hello, how can I check if an item can be traded/sold on the GE? I'm getting nullpointers when calling getGrandExchange().getOverallPrice() on an untradable item and you can't null check this operation since it returns an int. Thanks!
Token Posted April 30, 2019 Posted April 30, 2019 Wrap in a try catch block, if an exception is raised then it's not tradeable
Zummy Posted April 30, 2019 Author Posted April 30, 2019 Ofcourse, thanks! Maybe a good suggestion for the api?