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

    Recommended Posts

    Posted

    Hello there,

    I've started writing my own Dreambot scripts recently, however I'm currently stuck with a nasty NullPointerException and I can't figure out what causes it. Is there any way to use a Debugger with Dreambot and step through the script so I can actually see whats going on?

    Posted

    The best form of debugging is already built in:

    log("Peepee poopoo")
    Posted
    8 hours ago, MaximusPrimo said:

    The console logs in the client will tell you which line is causing the null pointer error

    Sure, I already know that, but I still can't quite figure it out. My Java knowledge is a bit rusty.

    7 hours ago, Diggington said:

    The best form of debugging is already built in:

    log("Peepee poopoo")

    Well, printf debugging is always possible, however I prefer having an actual debugger.

    Posted

    Well it's trying to interact with an object etc. that has null value, the fix might be as simple as null checking eg (if thing != null) {doThing();}

    A screenshot of the logger and lines that are invoking the error will help us.

    Posted

    I'm not asking for support with that specific here, I can fix my programs myself, I know what a NullPointerException is and I can operate a debugger (if I know how to set it up).
    Coming from C++, so I know how to use a debugger.
    Cries in Segmentation Fault (Core dumped)...

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • 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.