Zummy Posted April 30, 2019 Share 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! Quote Link to comment Share on other sites More sharing options...
Token Posted April 30, 2019 Share Posted April 30, 2019 Wrap in a try catch block, if an exception is raised then it's not tradeable Quote Link to comment Share on other sites More sharing options...
Zummy Posted April 30, 2019 Author Share Posted April 30, 2019 Ofcourse, thanks! Maybe a good suggestion for the api? Quote Link to comment Share on other sites More sharing options...