question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Decompile array error

Orig:

<array name=name">
<item>0</item>
</array>

Decompile:

<array name=name">
<item>@null</item>
</array>

It code = NulPointerException

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jpstotzcommented, Jul 30, 2022

@skylot Looking into the code of apktool I see three references of "@null":

In ResReferenceValue.java ResFlagsAttr.java and ResEnumAttr.java.

So my guess at the moment that we should consider at this point value.getRawValue().getDataType(). In my tests for @null replacements that seem to be reasonable I usually saw TYPE_REFERENCE as dataType value. But the array case this issue is about it was TYPE_STRING.

I will try to load more APKs to better understand when a replacement is currently applied and if it makes sense.

0reactions
skylotcommented, Jul 31, 2022

Fixed in PR #1594 by @jpstotz Can anyone verify that issue is resolved?

Read more comments on GitHub >

github_iconTop Results From Across the Web

numpy.zeros — NumPy v1.23 Manual
numpy.zeros# ... Return a new array of given shape and type, filled with zeros. ... Reference object to allow the creation of arrays...
Read more >
How to create an array of zeros in Python? - GeeksforGeeks
How to create an array of zeros in Python? · Method 1: Using simple multiplication. In this example, we are multiplying the array...
Read more >
Create array of all zeros - MATLAB zeros - MathWorks
X = zeros( sz ) returns an array of zeros where size vector sz defines size(X) . For example, zeros([2 3]) returns a...
Read more >
NumPy: zeros() function - w3resource
The zeros() function is used to get a new array of given shape and type, filled with zeros. Syntax: numpy.zeros(a, dtype=None, order='K', subok= ......
Read more >
Zero Indexed Arrays - Medium
Zero Indexed Arrays. A basic programming concept, but an essential one. An array is store of the same type of data. Now, not ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found