Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7535629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:21:07+00:00 2026-05-30T06:21:07+00:00

This is the exception: java.lang.NullPointerException at com.rs.net.decoders.handlers.InventoryOptionsHandler$2.run(InventoryOptionsHandler.java:512) at com.rs.game.player.CoordsEvent.processEvent(CoordsEvent.java:55) at com.rs.game.player.Player.processEntity(Player.java:357) at com.rs.cores.WorldProcessor.process(WorldProcessor.java:39) at

  • 0

This is the exception:

java.lang.NullPointerException
    at com.rs.net.decoders.handlers.InventoryOptionsHandler$2.run(InventoryOptionsHandler.java:512)
    at com.rs.game.player.CoordsEvent.processEvent(CoordsEvent.java:55)
    at com.rs.game.player.Player.processEntity(Player.java:357)
    at com.rs.cores.WorldProcessor.process(WorldProcessor.java:39)
    at com.rs.cores.PriorityProcessor.run(PriorityProcessor.java:10)

Here is the code:

InventoryOptionsHandler:

if (object.getId() == 15621) {
    player.getWarriorsGuild().createWarrior(itemId, object);
    player.getDialogueManager().startDialogue(
         (short) 211,
         new String[] {
             "The animator hums. Something seems to be working.",
             "You stand back..." });
    return;
}

Now my getWarriorsGuild() Method in player.java

public AnimationGame getWarriorsGuild() {
    return warriorsGuild;
}

public AnimationGame warriorsGuild = new AnimationGame(this);

and last but not least, my createWarrior method in AnimationGame.

public void createWarrior(int armours, final WorldObject object) {
    final WarriorsArmour sets = WarriorsArmour.forId(armours);
    if (sets == null || sets.getArmour() == null) return;
    if (sets.getArmour()[0] == armours || sets.getArmour()[1] == armours
            || sets.getArmour()[2] == armours) {
        if (player.getInventory().containsItem(sets.getArmour()[0], 1)
                && player.getInventory().containsItem(sets.getArmour()[1],
                        1)
                && player.getInventory().containsItem(sets.getArmour()[2],
                        1)) {
            final boolean running = player.isRunning();
            player.getInventory().deleteItem(sets.getArmour()[0], 1);
            player.getInventory().deleteItem(sets.getArmour()[1], 1);
            player.getInventory().deleteItem(sets.getArmour()[2], 1);
            int newX = player.getX();
            int newY = player.getY() + 5;
            player.setRun(false);
            player.setRunHidden(false);
            player.addWalkSteps(newX, newY, -1, false);
            player.setNextAnimation(new Animation(827));
            player.addStopDelay(3L);
            player.getDialogueManager().startDialogue("WAnimator",
                    new Object[0]);
            WorldTasksManager.schedule(new WorldTask() {

                public void run() {
                    if (!secondloop) {
                        secondloop = true;
                        player.setRunHidden(running);
                    } else {
                        stop();
                    }
                }

                boolean secondloop;
            }, 0, 6);
            WorldTasksManager.schedule(new WorldTask() {

                @Override
                public void run() {
                    final NPC war = new NPC(sets.getNpcId(), new WorldTile(
                            object.getX(), object.getY(), 0), -1, true);
                    war.addWalkSteps(player.getY(), player.getY());
                    player.setNextFaceEntity(war);
                    war.setTarget(player);
                    war.setNextAnimation(new Animation(4166));
                    war.setNextForceTalk(new ForceTalk("I'M ALIVE!"));
                    player.getInterfaceManager().closeChatBoxInterface();
                    player.getInterfaceManager()
                            .closeReplacedRealChatBoxInterface();
                    player.getHintIconsManager().addHintIcon(war, 1, -1,
                            false);
                    player.sendAreaInterface(player);
                    WorldTasksManager.schedule(new WorldTask() {

                        @Override
                        public void run() {
                            war.setFinished(true);
                            war.setForceWalk(new WorldTile(-1, -1, -1));
                            World.removeNPC(war);
                            stop();
                        }

                    }, 60, 60);
                    stop();
                    return;
                }

            }, 3, 3);
        } else {
            return;
        }
        return;
    }
}

I would like to know, what is causing that nullpointer, as I do not understand?
If you need to see more, dont hesitate to ask, thanks 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:21:08+00:00Added an answer on May 30, 2026 at 6:21 am

    Check object.getId() from InventoryOptionsHandler class. I think your id is null then causes NullPointerException.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Exception in thread main java.lang.NullPointerException at com.hibernate.UserDAO.findAll(UserDAO.java:154) at test.main(test.java:12) I am getting this error
In websphere (version 6 sp11) on request.getHeaderNames method call, i get this exception java.lang.NullPointerException
I'm getting the error: Exception in thread main java.lang.NullPointerException at com.deanchester.minos.utils.DatabaseManager.createTables(DatabaseManager.java:59) at com.deanchester.minos.tests.testAddContestantMethod.main(testAddContestantMethod.java:21) I
Problems with the TabActivity... I get this Exception java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1816) at android.app.ActivityThread.startActivityNow(ActivityThread.java:1651) at
Exception in thread Thread-2 java.lang.NumberFormatException: For input string: 3 int test = Integer.parseInt(result[0]); This
Why are some exceptions in Java not caught by catch (Exception ex) ? This
What is the cause of this exception in ASP.NET? Obviously it is a viewstate
12-07 11:25:34.290: E/AndroidRuntime(9177): FATAL EXCEPTION: AsyncTask #2 12-07 11:25:34.290: E/AndroidRuntime(9177): java.lang.RuntimeException: An error occured
My app has an occasional bug in it. Flurry shows me this: class java.lang.RuntimeException
When I run java -jar MidiTest.jar , input a MIDI file, it throws: Exception

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.