1
Vote

Crash on saving element when using "Find Resource" option to get translations

description

Reported for ResourceBlender Express 1.47
 
When I'm trying to re-use some of my resources not used by any bundle (3 bundles in total, working on bundle with 11 languages), and save the element application crashes.
 
Here are steps to reproduce the problem:
  1. On the "View Resources" list showing all languages in my bundle, I've picked up an element that had few translations missing and I knew that there was an unused resource with translations I could use.
  2. In "Edit Element" window, I've expanded the translations list to one I wanted to use (Spanish - last on the list) and expanded it.
  3. Clicked on "Search for similar translations using Spanish (Spain) translation" button
  4. In "Find Resource" window's "Translation" box, I've typed in few letters of the translation I was looking for to filter the list.
  5. Selected the item on the filtered list that I was going to use. In my case it was the first item from 5 in total.
  6. Clicked on "Select Resource" button - after this application returned to "Edit Element" window, but no field was populated with the selected resource - maybe because I had 3 out of 10 translation boxes filled before??
  7. Now when I press Save, Next, Previous buttons application will crash.
     
    -------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.O

comments

RobK wrote May 26, 2010 at 12:06 PM

I had a look in my database and if that helps, the resource I have selected to be used as in steps 5 and 6 seems to not have the translation for my default language - English (United Kingdom). There are only 8 records for total 11 languages I'm using int he bundle.

wrote Feb 13, 2013 at 8:55 PM