Ayylmao42000 6 Share Posted March 14, 2017 [ERROR]14:46:25: Exception has occurred while running! Please report error to developer if problem persists: java.lang.NullPointerException at Brutal.lambda$11(Brutal.java:58) at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source) at java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) at java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.util.stream.ReferencePipeline.collect(Unknown Source) at org.dreambot.api.methods.container.AbstractItemContainer.all(AbstractItemContainer.java:371) at org.dreambot.api.methods.container.AbstractItemContainer.get(AbstractItemContainer.java:422) at org.dreambot.api.methods.container.impl.bank.Bank.get(Bank.java:108) at org.dreambot.api.methods.container.impl.bank.Bank.withdraw(Bank.java:369) at Brutal.onLoop(Brutal.java:58) at org.dreambot.api.script.AbstractScript.run(AbstractScript.java:238) at java.lang.Thread.run(Unknown Source) Line 58; if (getBank().withdraw(i -> i.getName().contains("Amulet of glory"), 1)) { The item is in bank, also, i have the following check above which returns true; if (getBank().contains(i -> i.getName().contains("Amulet of glory"))) { NEVERMIND, ADDED i != null TO FILTER AND NOW IT WORKS Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.