FinalLody / droiddraw

Automatically exported from code.google.com/p/droiddraw
0 stars 0 forks source link

NPE when changing root layout #245

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Changing root layout from LinearLayout to TableLayout
2. Add button

What is the expected output? What do you see instead?
  Expected: The button was successfully added to the form.
  Actualy: At the console we can see NullPointerException

What version of the product are you using? On what operating system?
  DroidDraw vertion is r1b21.
  Operation system: Windows 7 x64
  Java: jdk1.6.0_29

Original issue reported on code.google.com by a.paslav...@gmail.com on 26 Mar 2012 at 7:46

Attachments:

GoogleCodeExporter commented 9 years ago
I can't reproduce this at head in the code base.

However, I added more defensiveness around that code, and some logging, so this 
stack trace shouldn't re-occur regardless of what happens.

(also, placing a non-TableRow widget inside a TableLayout is undefined 
anyway...)

Original comment by brendan....@gmail.com on 16 Apr 2012 at 5:54