Fix a NullPointerException throwing during refactoring.#617
Conversation
…ler inform the developer about the missing constant
|
How is this ...
... related to that?
|
|
I think there are multiple way to have this error. The refactoring is one of them, but the cause is always the same : the id's field have a In my case, because R.id.xxx doesn't exists, there is a Java compilation error on this. But the annotation processing seems to run anyway and considere the value is In the case of #530, I suspect the same kind of thing. But as the error can shows up everywhere in the code, I think it's why this seems so weird. I don't know if I'm clear but it's hard to understand without try to make it crash :) |
|
And how does an empty array solve this problem ? Doesn't it break the generated classes ? |
|
Just follows the hierarchy calls. I think it should works :-) |
|
For example, for |
|
I don't get it. @Click(R.id.foo)
public void bar(){ }If the error occurs, even with the fallbacks, what does the generated code looks like? |
…E if resources id doesn't exists
Fix a NullPointerException throwing during refactoring.
|
This should works and reduce issues number by 20% :D |
Let the inform compiler the developer about the missing constant. This is related to #616, #612, and #530