We're updating the issue view to help you get more done. 

NPE importing product data

Description

From a 1.7 error report:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 java.lang.NullPointerException at org.openvpms.archetype.rules.product.ProductPriceRules.getMarkup(ProductPriceRules.java:261) at org.openvpms.archetype.rules.product.io.ProductUpdater.updatePrice(ProductUpdater.java:118) at org.openvpms.archetype.rules.product.io.ProductUpdater.updateProduct(ProductUpdater.java:103) at org.openvpms.archetype.rules.product.io.ProductUpdater.update(ProductUpdater.java:78) at org.openvpms.archetype.rules.product.io.ProductImporter.run(ProductImporter.java:64) at org.openvpms.web.workspace.product.ProductCRUDWindow.onImport(ProductCRUDWindow.java:358) at org.openvpms.web.workspace.product.ProductCRUDWindow.access$400(ProductCRUDWindow.java:77) at org.openvpms.web.workspace.product.ProductCRUDWindow$6.onOK(ProductCRUDWindow.java:291) at org.openvpms.web.echo.dialog.PopupDialogListener.onAction(PopupDialogListener.java:108) at org.openvpms.web.echo.dialog.PopupDialogListener.onClose(PopupDialogListener.java:40) at org.openvpms.web.echo.event.WindowPaneListener.windowPaneClosing(WindowPaneListener.java:37) at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:154) at org.openvpms.web.echo.dialog.PopupWindow.fireWindowClosing(PopupWindow.java:215) at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:795) at org.openvpms.web.echo.dialog.PopupDialog.userClose(PopupDialog.java:262) at org.openvpms.web.echo.dialog.PopupWindow.close(PopupWindow.java:142) at org.openvpms.web.echo.dialog.PopupDialog.close(PopupDialog.java:417) at org.openvpms.web.echo.dialog.PopupDialog.onOK(PopupDialog.java:323) at org.openvpms.web.workspace.product.io.ProductImportDialog.access$001(ProductImportDialog.java:59) at org.openvpms.web.workspace.product.io.ProductImportDialog$1.onOK(ProductImportDialog.java:87)

Appears to be due to a fixed price having no cost set.

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Affects versions

1.7

Priority

Minor