Marinell / codenameone

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

Problem creating an override in the designer #387

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here are the steps:

1- Create a new project, selected the visual hello world with the chrome theme
2- Open theme.res
3- Change "Override In Platform" to Android (phones & tablets)
4- Click the green icon, the big red message goes away
5- I decide that labels with red text are cool, so I change the Label 
foreground color to ff0000
6- Save

$ /usr/java/jdk1.7.0_07/jre/bin/java -jar 
/home/fabricio/.codenameone/designer_1.jar 
/home/fabricio/Projetos/codenameone/CodenameOneResTest/src/theme.res
2012-11-06 08:20:53.150:INFO:oejs.Server:jetty-8.0.y.z-SNAPSHOT
2012-11-06 08:20:53.245:INFO:oejs.AbstractConnector:Started 
SelectChannelConnector@0.0.0.0:9000 STARTING
Nov 06, 2012 8:20:53 AM org.jdesktop.application.LocalStorage getId
WARNING: unspecified resource Application.id using ResourceEditorApp
java.lang.NullPointerException
    at java.io.DataOutputStream.writeUTF(DataOutputStream.java:347)
    at java.io.DataOutputStream.writeUTF(DataOutputStream.java:323)
    at com.codename1.ui.util.EditableResources.saveTheme(EditableResources.java:835)
    at com.codename1.ui.util.EditableResources.save(EditableResources.java:581)
    at com.codename1.ui.util.EditableResources.save(EditableResources.java:511)
    at com.codename1.designer.ResourceEditorView$SaveResourceFileAction.exectute(ResourceEditorView.java:4000)
    at com.codename1.ui.resource.util.BlockingAction.run(BlockingAction.java:88)
    at java.lang.Thread.run(Thread.java:722)

The NullPointerException above happens at the moment I click "Save" (step 6). A 
file is generated at the override directory and if I try to open the override 
again it throws a EOFException.

Tested under linux and windows.

See thread discussing this: 
https://groups.google.com/forum/embed/?place=forum%2Fcodenameone-discussions&sho
wsearch=true&showpopout=true&hl=en&parenturl=http%3A%2F%2Fwww.codenameone.com%2F
discussion-forum.html&pli=1#!topic/codenameone-discussions/OLar6y4j_ks

Original issue reported on code.google.com by fabricio...@gmail.com on 8 Nov 2012 at 10:56

GoogleCodeExporter commented 9 years ago

Original comment by shai.almog on 10 Nov 2012 at 8:05

GoogleCodeExporter commented 9 years ago
I think I fixed this prior to 1.0 when working on a different issue. I'm 
closing this, please reopen if this is still happening in 1.0.

Original comment by shai.almog on 27 Jan 2013 at 7:02