Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Weird exception

Primate
Joined
Oct 30, 2014
Messages
3,457
Code:
java.lang.NullPointerException
 at java.util.regex.Matcher.getTextLength(Unknown Source)
 at java.util.regex.Matcher.reset(Unknown Source)
 at java.util.regex.Matcher.(Unknown Source)
 at java.util.regex.Pattern.matcher(Unknown Source)
 at com.runemate.game.api.hybrid.queries.ActorQueryBuilder.accepts(vrb:195)
 at com.runemate.game.api.hybrid.queries.NpcQueryBuilder.accepts(snb:243)
 at com.runemate.game.api.hybrid.queries.NpcQueryBuilder.accepts(snb:255)
 at com.runemate.game.api.hybrid.queries.QueryBuilder.results(bwb:90)
 at productions.coconut.divination.Wisps.getEnriched(Wisps.java:10)
 at productions.coconut.divination.Main.shouldConvert(Main.java:45)
 at productions.coconut.divination.tasks.ConvertXp.validate(ConvertXp.java:29)
 at productions.coconut.api.framework.DTaskScript$$Lambda$360/172984010.test(Unknown Source)
 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.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
 at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
 at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
 at java.util.stream.ReferencePipeline.forEach(Unknown Source)
 at productions.coconut.api.framework.DTaskScript.onLoop(DTaskScript.java:63)
 at com.runemate.game.api.script.framework.LoopingScript.run(rub:211)
 at com.runemate.game.api.script.framework.AbstractScript.start(wxb:265)
 at a.Xi.run(bcb:110)

@Cloud
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,044
Another one.

Code:
java.lang.IllegalStateException: Expected a numerical value for Client.minimapState but instead we received null
   at a.RM.else(ojb:62)
   at a.RM.else(ojb:185)
   at a.RM.else(ojb:44)
   at a.mM.else(yvb:77)
   at a.mM.else(yvb:127)
   at com.runemate.game.api.hybrid.Projection.coordinateToMinimap(nvb:168)
   at com.runemate.game.api.hybrid.location.Coordinate$MinimapCoordinate.isVisible(ewb:592)
   at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.getNext(qub:238)
   at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.step(qub:242)
   at com.runemate.game.api.hybrid.location.navigation.Path.step(hob:89)
   at productions.coconut.divination.tasks.HarvestMemories.execute(HarvestMemories.java:21)
   at productions.coconut.api.framework.DTaskScript$$Lambda$407/292185391.accept(Unknown Source)
   at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
   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.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
   at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
   at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
   at java.util.stream.ReferencePipeline.forEach(Unknown Source)
   at productions.coconut.api.framework.DTaskScript.onLoop(DTaskScript.java:63)
   at com.runemate.game.api.script.framework.LoopingScript.run(rub:211)
   at com.runemate.game.api.script.framework.AbstractScript.start(wxb:265)
   at a.Xi.run(bcb:110)
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Code:
java.lang.NullPointerException
 at java.util.regex.Matcher.getTextLength(Unknown Source)
 at java.util.regex.Matcher.reset(Unknown Source)
 at java.util.regex.Matcher.(Unknown Source)
 at java.util.regex.Pattern.matcher(Unknown Source)
 at com.runemate.game.api.hybrid.queries.ActorQueryBuilder.accepts(vrb:195)
 at com.runemate.game.api.hybrid.queries.NpcQueryBuilder.accepts(snb:243)
 at com.runemate.game.api.hybrid.queries.NpcQueryBuilder.accepts(snb:255)
 at com.runemate.game.api.hybrid.queries.QueryBuilder.results(bwb:90)
 at productions.coconut.divination.Wisps.getEnriched(Wisps.java:10)
 at productions.coconut.divination.Main.shouldConvert(Main.java:45)
 at productions.coconut.divination.tasks.ConvertXp.validate(ConvertXp.java:29)
 at productions.coconut.api.framework.DTaskScript$$Lambda$360/172984010.test(Unknown Source)
 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.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
 at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
 at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
 at java.util.stream.ReferencePipeline.forEach(Unknown Source)
 at productions.coconut.api.framework.DTaskScript.onLoop(DTaskScript.java:63)
 at com.runemate.game.api.script.framework.LoopingScript.run(rub:211)
 at com.runemate.game.api.script.framework.AbstractScript.start(wxb:265)
 at a.Xi.run(bcb:110)

@Cloud
Are you passing in a null argument?
 
Primate
Joined
Oct 30, 2014
Messages
3,457
Can you show me the query that's causing this?
Code:
Npcs.newQuery().names(getScript().getData().wispType + " wisp", getScript().getData().wispType + " spring").results().nearest();
Code:
BresenhamPath.buildTo(wisp).step(true);
 
Top