This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 14593 - Component Palette : NPE after rename category and other Rename problems
Summary: Component Palette : NPE after rename category and other Rename problems
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Josef Kozak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-20 17:30 UTC by Marian Mirilovic
Modified: 2003-06-30 18:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NullPointerException (787 bytes, text/plain)
2001-08-20 17:30 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2001-08-20 17:30:19 UTC
[nb_dev](20010820),[jdk1.3.1](rc1)

I know, that we are rewritting Component Palette, but in  my opinion this bug
will cause new more anoying bugs after merge new CP to trunk.

Steps to reproduce:
- open Options
- expand Component Palette node
- rename category for example "AWT" to "MyAWT"

Now you obtain NullPointerException(attachment).

If you rename category by push "Rename" on context menu of tab in Component
Palette (not in Options window), operation ends without firing exception.

Another problems:
1. if you try rename renamed category back to original name ( if you now rename
MyAWT to AWT , this category "vanish", 
2. if you try rename category in Options and new name contain spaces, category
is renamed ( but new name is without spaces ), if you rename to the same name (
with spaces) by context menu on CP, new category name contains spaces.
Comment 1 Marian Mirilovic 2001-08-20 17:30:40 UTC
Created attachment 2233 [details]
NullPointerException
Comment 2 Marian Mirilovic 2001-08-30 17:01:14 UTC
Well, new Component Palette is in IDE but problems with Rename /
Create New Category and inconsistent behaviour of CP survive.

New example :
- create new category "Bean (2)"
	-> created ategory has name "Bean2" instead "Bean (2)"
- if now you try to rename "Bean2" to "Bean (2)" it's succeed

Why you can rename category to name with spaces, .... , but if you
create category which name contains spaces ,... , than these
characters are removed from category name.
Comment 3 jrojcek 2001-09-13 16:01:43 UTC
In the dev build 200109131600 behavior is different from bug
description. I can't reproduce exceptions and category is not lost
when renaming categories as described. Only reordering of categories
after renaming persists. Anyway I found behavior of palette and
Tools|Options|...|Component Palette equivalent, so I am reassigning
this issue back to form issues owner.
Comment 4 Josef Kozak 2001-10-24 22:21:54 UTC
A. problems with NPE disappeared (fixed in core)
B. problems with disappearing categories disappeared (fixed in core)
C. problems with names containing spaces disappeared (fixed in core)
D. the problem was only the following:
If you rename some category, reordering of categories occures and 
some categories could have the same items as the other categories,
and items don't correspond with the category name, you could e.g. see 
that "Borders" category contains layout-items. 

Problem D was fixed, others were fixed probably earlier in the core.

::: fixed in dev
Comment 5 Marian Mirilovic 2001-10-31 08:39:38 UTC
verified in [nb_dev](20011030), but problems with reordering still
attendant.
Comment 6 Quality Engineering 2003-06-30 18:31:38 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.