Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • withdrawing item npe


    Ayylmao42000

    Recommended Posts

    [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

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.