From 3045bc068ac83895eb71fe139b1a797a22161122 Mon Sep 17 00:00:00 2001 From: charithag Date: Mon, 5 Oct 2015 15:29:36 +0530 Subject: [PATCH] Fix enrolling exception in raspberry pi device type --- .../raspberrypi/service/impl/RaspberrypiManagerService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/samples/raspberrypi/src/org.wso2.carbon.device.mgt.iot.sample.raspberrypi.service.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/raspberrypi/service/impl/RaspberrypiManagerService.java b/modules/samples/raspberrypi/src/org.wso2.carbon.device.mgt.iot.sample.raspberrypi.service.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/raspberrypi/service/impl/RaspberrypiManagerService.java index b37ef4d4..5c8d1187 100644 --- a/modules/samples/raspberrypi/src/org.wso2.carbon.device.mgt.iot.sample.raspberrypi.service.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/raspberrypi/service/impl/RaspberrypiManagerService.java +++ b/modules/samples/raspberrypi/src/org.wso2.carbon.device.mgt.iot.sample.raspberrypi.service.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/raspberrypi/service/impl/RaspberrypiManagerService.java @@ -79,6 +79,7 @@ public class RaspberrypiManagerService { device.setName(name); device.setType(RaspberrypiConstants.DEVICE_TYPE); enrolmentInfo.setOwner(owner); + device.setEnrolmentInfo(enrolmentInfo); boolean added = deviceManagement.getDeviceManagementService().enrollDevice(device); if (added) { response.setStatus(Response.Status.OK.getStatusCode());