Crash when trying to save edited resource

Bugs in ResourceBlender

Crash when trying to save edited resource

Postby alemarko on Fri Aug 28, 2009

Hi Harry,
first I'd like to thank you for the application and effort invested into it.

Here's the problem: I added new resource and added translated text, but initially
I forgot to add text in default application language.
Now I can't add text in default language, it keeps crashing.
I resolved my problem by manually inserting record into database.

Regards,
Alex


Steps to reproduce: download ResourceBlender Express - zip version (1.4.3.463),
and run it: just follow the wizard accepting all the defaults
(it creates new SQLite database and application "Sample App").

Click button "Resources", select "bundle1", click button "View Resource"
and then in form "View Resources" click the button "Add Element".
Enter in the textbox "Element name" value "test1", expand group box "Translations"
and enter in the textbox "Chinese (Taiwan)" enter value "chinese1" and in "German (Germany)"
enter value "german1". Now click "Save and close" button to close the form.

Back in the "View Resources" form, doubleclick on the element "test1" to bring up the "Add Element"
form again (notice that the drop down element "Resource" is empty, I believe here's the problem).
In the textbox "English (Unites States)" enter value "en1" and click on the "Save and close" button.
It fails with the following stack trace:


-------Message-------

Object reference not set to an instance of an object.



-------StackTrace-------

at ResourceBlender_Express.WinAddElement.Save(Object sender, ExecutedRoutedEventArgs e) at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e) at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding) at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute) at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute) at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e) at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e) at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated) at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated) at System.Windows.Input.CommandManager.TransferEvent(IInputElement newSource, ExecutedRoutedEventArgs e) at System.Windows.Input.CommandManager.OnExecuted(
alemarko
Member
 
Posts: 1
Joined: Fri Aug 28, 2009

Re: Crash when trying to save edited resource

Postby Harry Jennerway on Fri Aug 28, 2009

Thanks for helping me track this down. It's been fixed in 1.4.4.
Image
User avatar
Harry Jennerway
Developer
Developer
 
Posts: 1234
Joined: Tue Nov 22, 2005
Location: England

Return to Bug Reports

cron